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

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -

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

php - What is the best way to get the URL of a 404'd file after redirect? -