Re: Function in selection?

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Function in selection?
Date: 2003-03-13 19:11:38
Message-ID: 3E70D7EA.375D589B@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How is Z being joined? What's the condition?

"Dousak May (Phoebus Apollonus)" wrote:
>
> Hi, I want to make really advanced query and I'm not sure it's
> possible... it would be "like that":
>
> select A, B, C, D, E, F from TABLE_X ORDER BY D, C, E
> if A==0 AND B!=0 {A=B*Z.TABLE_Y}
> if A!=0 AND B==0 {B=A/Z.TABLE_Y}
>
> OK, I don't really have problems with first line :), but how can I tell
> him to select like the second and third line are telling it?
> is that possible? :/
>
> Tnx,
>
> May
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marc G. Fournier 2003-03-13 19:16:50 Re: removal from list
Previous Message Peter Darley 2003-03-13 19:11:05 Re: Function in selection?