| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Can I do this using SQL?
Hi,
Thanks a lot! Ok, so let me get this straight... If I have a count(),
min(), max, avg() on the projection list, then I can use it with group
by and the aggregate will be applied on EACH GROUP? Also, is ORDER BY
always applied last(on the final result set).
Also, if I have a HAVING clause, will it too be applied on each GROUP?
If so, then can I always emulate HAVING by using subqueries, by projecting the fields after the HAVING keyword, and putting the condition after the HAVING keyword in the WHERE of the outher select?
-Dhruv. Received on Thu Feb 09 2006 - 07:10:12 CST
![]() |
![]() |