Any ideas on how to generate the following query using Nhibernate using the Criteria API?
select count(*)as z from (select distinct x, y from tableName) as t
or
select count(distinct (x , y)) as z FROM tableName
or
some other query that returns the same results.
source
share