-->
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.  [ 1 post ] 
Author Message
 Post subject: hql group by clause help needed
PostPosted: Fri Feb 16, 2007 4:52 pm 
Newbie

Joined: Thu Aug 17, 2006 12:44 pm
Posts: 4
i am trying to use "group by" in a new way and don't understand why it doesnot work for me. can somebody help me on this one?
this one works
select atable.aforeignkey.id
from atable atable
group by atable.aforeignkey.id

this one works too
select atable.aforeignkey
from atable atable

why this one doesnot?
select atable.aforeignkey
from atable atable
group by atable.aforeignkey

Thanks


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

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.