-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: whats wrong with this criteria ?
PostPosted: Tue Oct 19, 2010 5:09 am 
Newbie

Joined: Tue Oct 19, 2010 4:58 am
Posts: 1
Hello,

I got error in connection with this criteria below,
http://pastebin.com/mEjEdz5d

I'm beginner, but as I know orderby should not depend on group by and any aggregate function.


Top
 Profile  
 
 Post subject: Re: whats wrong with this criteria ?
PostPosted: Wed Oct 20, 2010 7:45 am 
Senior
Senior

Joined: Fri Oct 08, 2010 8:44 am
Posts: 130
cscsaba wrote:
Hello,

I got error in connection with this criteria below,
http://pastebin.com/mEjEdz5d

I'm beginner, but as I know orderby should not depend on group by and any aggregate function.


Actually you can only use ORDER BY after you used GROUP BY if the particular column is included into GROUP BY or is aggregate function. This how any SQL based database management behaves. So the error message is completely correct.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.