| Author |
retrive data
|
madhuchilipi reddy
Greenhorn
Joined: Feb 09, 2007
Posts: 17
|
|
i am writing in sql my query is "select max(sid) from Student" this is my query. how i write same query using HQL
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Its written pretty much the same as you would in SQL: However, why do you want the max id? I would normally expect an aggregate function to be used on a numeric property, not the primary key?
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
 |
|
|
subject: retrive data
|
|
|