0

我是 nhibernate 的新手,我无法通过使用 queryover api 找出如何执行此 sql 查询:

SELECT category, MAX(number) as "Highest number"
FROM table1
GROUP BY category;

任何帮助,将不胜感激

4

1 回答 1

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;
于 2013-07-18T17:36:24.290 回答