group error [message #37277] |
Mon, 28 January 2002 13:14 |
Lance Pris
Messages: 40 Registered: January 2002
|
Member |
|
|
Why when I use the following SQL it get a
ORA-00937: not a single-group group function
ORA-06512: at "PRIMUS.LICENSE_USE_EVERY_30", line 14
ORA-06512: at line 1
I am only trying to group on Time_stamp.
Thank you in advance
SELECT
ROUND(AVG(COUNT(Time_stamp))),
MIN(COUNT(time_stamp)),
MAX(COUNT(time_stamp)),
Time_stamp
FROM
cp_license_use
Where time_stamp = parmTime
and time_stamp >= SYSDATE-7
group by Time_Stamp)
|
|
|
|