How to find second highest or second maximum value from table.
Loading
How to find second highest or second maximum value from table.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Poonam BhosalePosted Nov 1, 2017, 12:47 AM
select max(column_name) from table_name
select max(Salary) from Employee
Nilofers ShaikhPosted Nov 1, 2017, 2:56 AM
Tushar DikshitPosted Nov 1, 2017, 2:48 AM
Vighnesh GadekarPosted Nov 1, 2017, 2:32 AM
(
Select ROW_NUMBER() Over(order by Salary DESC) as RowNum, Salary from Employee
)
Select Salary from temp where RowNum = 2
Amit AroraPosted Nov 1, 2017, 2:15 AM
Ravi PatelPosted Nov 1, 2017, 1:23 AM
Vighnesh GadekarPosted Nov 1, 2017, 1:20 AM
Amit KumarPosted Nov 1, 2017, 1:11 AM
Nilesh PatilPosted Nov 1, 2017, 12:49 AM