Re: [SQL] using top-level aggregate values in subqueries

2001-04-26 Thread Ossie J. H. Moore
Subject: Re: [SQL] using top-level aggregate values in subqueries Date: Mon, 23 Apr 2001 23:24:48 -0500 From: Ossie J. H. Moore <[EMAIL PROTECTED]> To: "Thomas F. O'Connell" <[EMAIL PROTECTED]> I'm a little unclear on what you are trying to do here so I'll

Re: [SQL] using top-level aggregate values in subqueries

2001-04-23 Thread Tom Lane
"Thomas F. O'Connell" <[EMAIL PROTECTED]> writes: > select f.id > from foo f, ola o > where f.id = ( > select max( b.id ) > from bar b > where b.bling = "i kiss you!" > ) > and o.id != ( > select max( b.id ) > from bar b > where b.bling = "i kiss you!" > ) > is