I have asked a question here
The solution is :
select * from table_name t
inner join
(select max(seq) seq, row_name from table_name group by row_name) t1 on t1.row_name = t.row_name and t.seq = t1.seq
But I need to convert it to HQL. The solution uses a subquery in FROM which is not allowed in HQL.
How can I convert the subquery to HQL using SELECT or WHERE?
Thanks.