LeetCode Second Highest Salary Solution Explained - Java

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

#coding #programming #softwareengineering
Рекомендации по теме
Комментарии
Автор

Leetcode is not allowing this one though..

select a.salary as SecondHighestSalary from employee a
where 2=(select count(b.salary) from employee b where b.salary >=a.salary)

vibhanshusharma
Автор

Mate, this is not java its known as SQL

Nexatek
join shbcf.ru