Skip to content

Instantly share code, notes, and snippets.

@QuatoHub
Created March 27, 2022 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuatoHub/46fc52f938e02dd6973de625dcc37a32 to your computer and use it in GitHub Desktop.
Save QuatoHub/46fc52f938e02dd6973de625dcc37a32 to your computer and use it in GitHub Desktop.
SELECT salary * months AS earnings, COUNT(*) FROM Employee
GROUP BY earnings ORDER BY earnings DESC LIMIT 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment