find the 3rd max salary

Answer Posted / shruti

select salary from salarytable orderby salary desc Limit 2,1

First It will arrange all salary in desc order then it will
limit the result using Limit command starting from position
0,1,2 and fetch record 1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between commit and rollback?

508


What are the differences between lost updates and uncommitted dependencies?

547


What are clustered and non-clustered index?

552


What is thr feature of change data capture?

510


What are transactions in sql?

558






What is the difference between index seek vs. Index scan?

583


what are the different types of SSRS reports?

112


what's the information that can be stored inside a bit column? : Sql server database administration

530


Can two tables share a primary key?

524


How to convert numeric expression data types using the cast() function?

549


Show Practically Sql Server Views are updatable?

594


Can we use pragma autonomous_transaction in trigger?

547


Difference between Inner vs outer joins?

538


Explain about remote stored procedure?

593


Why should we go for stored procedures? Why not direct queries?

574