max - SQL finding the maximum of all averaged results -


I have a Relationship Trainer (id, name, department, name, salary).

How will I go about finding the department's name with the highest average salary?

Is this trick? Nominated by name order, nominated by ID, at the top, by AG (pay)


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -