06
How would you find the second highest salary in SQL?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would use either a subquery, a window function, or a distinct sort depending on the database and the exact requirement. The key is to handle duplicates correctly and make the logic clear. Strong answers also mention how to adapt the query for department-level grouping.