Home » RDBMS Server » Server Administration » GROUP BY problem
GROUP BY problem [message #374882] Mon, 09 July 2001 15:47 Go to next message
Pavel Aksonov
Messages: 4
Registered: July 2001
Junior Member
select users.name, sum(info.count) from users, info where users.id=info.id group by info.id,users,id *
ERROR at line 1:
ORA-00979: not a GROUP BY expression

Please help me, clarify why i can't run this SQL statement
Re: GROUP BY problem [message #374910 is a reply to message #374882] Wed, 11 July 2001 07:25 Go to previous message
N.Anandasiva
Messages: 7
Registered: July 2001
Junior Member
Since you have selected only one column apart from the coloumn used in sum function, it is necessary to include the first coloumn in your query in group by clause.

Regards
N.Anandasiva
Previous Topic: Problem In Deleting Records Using Two Tables
Next Topic: SQL Server 6.5 install of service pack 5a fails???
Goto Forum:
  


Current Time: Wed Jul 03 03:08:21 CDT 2024