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

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

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