Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Newbie question on SQL Syntax: using data returned from an aggregate function
Just some quick remarks:
>
> SELECT *
>
> FROM table2
>
> WHERE (table2.field1, table2.field2, table2.field3) in
>
> (SELECT table1.field1, table1.field2, table1.field3, COUNT(*)
^^^^^ that makestrouble
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you don't needthat in your subquery (and if needed in your final output - it should go outside )
Hope it helps
Igor Received on Sat Oct 30 2004 - 06:43:39 CDT