Joined: Wed Jul 30, 2008 9:25 pm Posts: 3
|
Please can someone here help? This is all I need converted from SQL to HQL:
SELECT TOP 1 [fieldName] FROM [tableName] ORDER BY [fieldName] DESC
I have actually tried to figure it out on my own but am getting stuck on how to implement "SELECT TOP" and "DESC" in HQL.
It returns the largest number of a certain field within a table, and this one-line of code is all that stands between me and finishing my project (which I needed to have finished yesterday).
Thank you kindly in advance if someone can help!!
-Dave
|
|