Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / anil_abbireddy
select * from emp a where 2=(select count(distinct sal)
from emp b where a.sal<=b.sal)
Is This Answer Correct ? | 30 Yes | 8 No |
Post New Answer View All Answers
Explain the difference between 'between' & 'and' operators in sql
What do you mean by stored procedures?
How to start the command-line sql*plus?
What are literals in sql server?
What program will open a mdb file?
what is innodb? : Sql dba
How do you know if a relationship is 2nf?
What does truncate mean in sql?
What are the most important characteristics of pl/sql?
What are local and global variables and their differences?
What is sql stand for?
What is the use of partition by in sql?
Define a temp table?
How does one load ebcdic data? : aql loader
What is the purpose of cursors in pl/sql?