find out the second highest salary?
Answer Posted / ananth
this is for 2nd highest sal in sql server database
select * from emp where sal=(select max(sal) from emp where
sal<(select max(sal) from emp))
Is This Answer Correct ? | 119 Yes | 13 No |
Post New Answer View All Answers
What is the difference between online and offline backups?
What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar
Write a trigger example in oracle?
what is dynamic SGA and static SGA
Describe an oracle table?
Can objects of the same schema reside in different tablespace?
How to convert dates to characters in oracle?
Explain the use of consistent option in exp command.
Can group functions be mixed with non-group selection fields?
Explain what are the uses of rollback segment?
Can select statements be used on views in oracle?
How to run create database statement again?
How to speed up webrick?
What is the exact use of Collections?
What is raw datatype?