Home » SQL & PL/SQL » SQL & PL/SQL » group error
group error [message #37277] Mon, 28 January 2002 13:14 Go to next message
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)
Re: group error [message #37280 is a reply to message #37277] Tue, 29 January 2002 01:06 Go to previous message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
Hi,

do not use time_stamp in the select list.

hope it helps!!!

cheers
pratap
Previous Topic: Deleting data from a file
Next Topic: Finding out if column has default value associated
Goto Forum:
  


Current Time: Thu Mar 28 17:07:17 CDT 2024