Hi
I'm pretty new to HQL (well, nhibernate in general) and am currently building a simple app to learn more about it.
I've run into problems trying to express the following sql as hql though, and would be very grateful for any ideas.
Here's the query:
select * from parent p where p.id in (select p.parentid from child c where c.createdby = 2) and (select top 1 createdby from child where parentid = p.id order by createdon desc) != 2