ERROR: syntax error at or near "group" - Mailing list pgsql-admin

From Premila Devi
Subject ERROR: syntax error at or near "group"
Date
Msg-id 002501ca8799$637fdaf0$2a7f90d0$@dayalan@agbnielsen.com
Whole thread Raw
Responses Re: ERROR: syntax error at or near "group"  (Suresh Borse <s.borse@direction.biz>)
List pgsql-admin

select sum(alq.quantity + alq.locked), category.id, alq.assetStatus.name

from AssetLocationQuantity alq inner join alq.asset asset inner join asset.assetModel model inner join model.category category

group by category, alq.assetStatus.name;

 

Error :

 

ERROR:  syntax error at or near "group"

LINE 3: group by category, alq.assetStatus.name;

        ^

 

********** Error **********

 

ERROR: syntax error at or near "group"

SQL state: 42601

Character: 201

 

 

http://cs.agbnmr.com/ci/autocomposition/logo_agb.jpg

Warmest Regards,

Premila Devi Dayalan Ramasamy
Programmer Analyst
MSAP Production Development

AGB Nielsen Media Research
Level 7,Block B,Menara PKNS-PJ,Jalan Yong Shook Lin , 46050 Petaling Jaya , Selangor
( Malaysia )

t: 603-7620 2320
f: 603-7620 2316

Please note:
This email transmission including its attachments, are intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any views or opinions are solely those of the author and do not necessarily represent those of AGB Nielsen Media Research, unless specifically stated. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the email transmission immediately.

Attachment

pgsql-admin by date:

Previous
From: Shruthi A
Date:
Subject: Timestamp precision in Windows and Linux
Next
From: Suresh Borse
Date:
Subject: Re: ERROR: syntax error at or near "group"