Unique keys on views - Mailing list pgsql-sql

From
Subject Unique keys on views
Date
Msg-id 28054826$1117626704429da150e73fc2.98783130@config20.schlund.de
Whole thread Raw
List pgsql-sql
Hi

Is it possible to refer to a unique row identifier on a view ?

I have the following view but in a subsequent select I need to refer to
each row's unique identifier and I know oid's are not valid for a view.

create view persontransit
as
select personid, planet, name as aspectname, position as planetposition,
position+angle as transitposition
from personplanet, aspect
union
select personid, planet, name as aspectname, position as planetposition,
position-angle as transitposition
from personplanet, aspect
where name != 'OPPOSITION';

Many thanks

David


pgsql-sql by date:

Previous
From: Alain Reymond
Date:
Subject: How do write a query...
Next
From: "Ramakrishnan Muralidharan"
Date:
Subject: Re: Multiple SRF parameters from query