bhupixb

Some Cool sql questions

Jan 4th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. https://www.hackerrank.com/challenges/earnings-of-employees/problem?isFullScreen=true
  2.  
  3. SELECT earning,cnt from ((SELECT (earning),count(*)as cnt from (SELECT (salary*months) as earning FROM employee as a1) as a2
  4. GROUP BY earning )) as cool ORDER BY earning DESC limit 1
Add Comment
Please, Sign In to add comment