0

I am new to nhibernate and i fail to find out how to do this sql query by using queryover api:

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

any help would be appreciated

pack
  • 13
  • 1
  • 5

1 Answers1

0

try to change this:

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

to this:

SELECT department, MAX(number) as "Highest number" FROM table1 GROUP BY department;
BWS
  • 3,786
  • 18
  • 25