Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
I've seen this task before (second highest salary)... is this homework ? Hints... SQL has: * functions like min(), max(), etc and it can: * sort a column ascending and descending (put numbers in order) * limit the number of rows it returns (like, to just 1) * compare one query's output (a subquery) to generate another answer using the familiar < and > tests.
5th Nov 2017, 4:38 AM
Kirk Schafer
Kirk Schafer - avatar