我是nhibernate的新手,我没有找到如何使用queryover api执行此sql查询:
SELECT category, MAX(number) as "Highest number"
FROM table1
GROUP BY category;
任何帮助将不胜感激
答案 0 :(得分:0)
尝试改变这个:
SELECT department, MAX(number) as "Highest number" FROM table1 GROUP BY category;
到此:
SELECT department, MAX(number) as "Highest number" FROM table1 GROUP BY department;