how to find the second highest salary from emp table?

Answers were Sorted based on User's Feedback



how to find the second highest salary from emp table?..

Answer / jude

first find first maximum
then easy to find second maximum

Is This Answer Correct ?    98 Yes 330 No

Post New Answer

More SQL PLSQL Interview Questions

What is the use of non clustered index?

0 Answers  


What is trigger in pl sql with examples?

0 Answers  


What is constant in pl sql?

0 Answers  


How does join work in sql?

0 Answers  


what is the difference between trigger and constraint?

3 Answers   HSBC,






How do you delete duplicates in sql query using rowid?

0 Answers  


How do I write a sql query in pgadmin 4?

0 Answers  


Can we write dml inside a function in sql server?

0 Answers  


suppose I have two table one Emp and other is dpt. Emp table has a field ,dept id,name ,sal and dpt table has a field dept id,dept name. Now I want to find out the emplyee list whose sal is between 2000-3000 from dept x.

7 Answers   Geometric Software, IBM,


How to get each name only once from an employee table?

0 Answers  


Why is sharding used?

0 Answers  


What is the best sql course?

0 Answers  


Categories