-->
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.  [ 3 posts ] 
Author Message
 Post subject: IQuery with Max Aggregate function not working???
PostPosted: Mon Oct 10, 2005 4:02 am 
Newbie

Joined: Wed Sep 14, 2005 5:07 pm
Posts: 6
I have been trying to make this IQuery work:

SELECT max(UserLogin.LoginDate) FROM UserLogin

But it returns more than one record. Actually, I get all the records in the UserLogin table.

What I'm in doing wrong? Help anyone?


Top
 Profile  
 
 Post subject: Re: IQuery with Max Aggregate function not working???
PostPosted: Mon Oct 10, 2005 9:18 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Try
Code:
SELECT max(ul.LoginDate) FROM UserLogin ul

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Mon Oct 10, 2005 5:32 pm 
Thanks, it worked. I thought the table alias doesn't matter... I guess it does.

Again, Thanks


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.