All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g0101_0200.s0176_second_highest_salary.script.sql Maven / Gradle / Ivy

There is a newer version: 1.30
Show newest version
# Write your MySQL query statement below
# #Medium #Database #SQL_I_Day_4_Union_and_Select
# #2022_10_18_Time_219_ms_(92.54%)_Space_0B_(100.00%)
SELECT ifnull(
                (SELECT distinct(Salary)
                 FROM Employee
                 ORDER BY Salary DESC
                 LIMIT 1
                 OFFSET 1), NULL) SecondHighestSalary;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy