Re: [HACKERS] subquery syntax broken

From: ocie(at)paracel(dot)com
To: lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart)
Cc: maillist(at)candle(dot)pha(dot)pa(dot)us, vadim(at)sable(dot)krasnoyarsk(dot)su, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] subquery syntax broken
Date: 1998-02-02 18:52:10
Message-ID: 9802021852.AA23763@dolomite.paracel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas G. Lockhart wrote:
>
> > It's not the aggregates, it is the whole '= (subquery)' that is missing
> > from gram.y. I am adding it now.
>
> Right, and aggregates are the only way in general to get a singleton result from
> a subselect. OK, I forgot about "where y = (select 1)". Well, only _useful_
> way?? I'll bet I'm forgetting another one too...

How about "where y = (select distinct foo from bar where n=5)" ?

Ocie

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Shiby Thomas 1998-02-02 19:06:13 compilation on sparc_solaris
Previous Message Bruce Momjian 1998-02-02 18:29:33 Re: [HACKERS] subquery syntax broken