Hi, I am struggling for last 2 days in the following requirement: I am trying to get full record for each group (group by GroupId) with the latest StartTime like the following SQL:
SELECT * FROM Table a INNER JOIN (SELECT GroupId, max(StartTime) as MaxDate FROM Table WHERE GroupId IN (:ids) group by GroupId) b ON a.GroupId = b.GroupId AND a.StartTime = b.MaxDate I couldn't do it with NHikbernate: neither CreateQuery nor QueryOver. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
