We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Exactly! You only want the employees with the highest potential salary which is 108064. It will return any number of employees with that salary number, the query groups them by it. You don't want any other salary amount.
Hence why I did select top 1 and put it in descending order so highest is first ^-^
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Top Earners
You are viewing a single comment's thread. Return to all comments →
Exactly! You only want the employees with the highest potential salary which is 108064. It will return any number of employees with that salary number, the query groups them by it. You don't want any other salary amount. Hence why I did select top 1 and put it in descending order so highest is first ^-^