JPCogAdmin
Programmer
Hi,
I'm trying to select fields and use the DENSE_RANK() over function to no avail. I keep getting an error that says: ORA-00937: "not a single-group group function".
I'm doing the following code:
select field1,count(*) CALLS,sum(minutes) MINS,DENSE_RANK() over (order b count(*) desc);
The other problem is that I can't use the "CALLS" alias because it also complains. Can someone shed light on how to use this function. Also what is partition by do? Thank you.
-JP
I'm trying to select fields and use the DENSE_RANK() over function to no avail. I keep getting an error that says: ORA-00937: "not a single-group group function".
I'm doing the following code:
select field1,count(*) CALLS,sum(minutes) MINS,DENSE_RANK() over (order b count(*) desc);
The other problem is that I can't use the "CALLS" alias because it also complains. Can someone shed light on how to use this function. Also what is partition by do? Thank you.
-JP