| Oracle Group By Error!!! Please help [message #551310] |
Tue, 17 April 2012 03:03  |
 |
shiveclat
Messages: 19 Registered: August 2011 Location: pune
|
Junior Member |
|
|
Hi All,
I have below query not sure why but I a getting ERROR
ORA-00979: not a GROUP BY expression
00979. 00000 - "not a GROUP BY expression"
can some please help me with this.
Thanks
select LR.queue_name, LR.System, LR.Component, LR.Item, LR.Module
from TBL_PRGN_SCIM_LOOKUP LR
group by LR.queue_name
having count(distinct LR.Application_Name) > 1;
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Oracle Group By Error!!! Please help [message #569185 is a reply to message #569184] |
Mon, 22 October 2012 08:05  |
joy_division
Messages: 4267 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
fgauna wrote on Mon, 22 October 2012 08:57I encountered the same problem and it does not seem to be consistent.
The fix I was given was to
SQL> alter session set"_complex_view_merging"=false;
That solved the problem for me. I have no explanation as to why or what
is going on but give that a try.
Fernando G.
Either you are answering some other question or I do not understand you. What does this have to do about the OP not understanding how to properly use a GROUP BY statement?
There is no "fix" for not using a proper query.
|
|
|
|