Hello, I have already spent couple of hours with this issue and I would really appreciate your help. I have the following query: SELECT ID FROM (SELECT ID, Number, ROW_NUMBER() over(partition by Number order by Version desc) AS row_num FROM [Entity]) AS sub WHERE Number IS NOT NULL AND row_num = 1
The details of the query are not important. The important thing is that I need to select from the subselect to be able to filter by the row_num. Because my original query is slightly more complicated, I would like to use ICriteria or QueryOver. But how do I do a select from a subselect using ICriteria or QueryOver? And is it even possible? Kind regards, Dusan -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
