Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: HELP! Group By will only allow 2 fields.....Why?
In comp.databases.oracle.misc mAd hAcker <madhackerboy_at_hotmail.com> wrote:
: For Example:
: "SELECT pin, max(actual_points)
: FROM catch_entries
: GROUP BY pin
: ORDER BY max(actual_points) DESC"
: Works just fine......but when I do this:
: "SELECT pin, max(actual_points), adjusted_points
: FROM catch_entries
: GROUP BY pin
: ORDER BY max(actual_points) DESC"
: I get an error message :
: ERROR at line 1:
: ORA-00979: not a GROUP BY expression
All columns listed in GROUP BY clause have to be listed in the same order after SELECT keyword and then is possible to use some agregate functions.
Starous Received on Thu Jul 06 2000 - 00:00:00 CDT
![]() |
![]() |