Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sushma
SELECT * from
(SELECT * FROM emp ORDER BY sal DESC)
WHERE rownum <= 2
MINUS
SELECT * from
(SELECT * FROM emp ORDER BY sal DESC)
WHERE rownum < 2
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how many ways we can we find the current date using mysql? : Sql dba
How do I run a pl sql program?
Is there a 64 bit version of ssms?
How do I view stored procedures?
What is sqlcontext?
What is the function that is used to transfer a pl/sql table log to a database table?
Where is all the data on the internet stored?
Mention what are different methods to trace the pl/sql code?
What is the difference between inner join and natural join?
what is the bond code in materialized view?
What is sql trigger example?
What is the use of index in hive?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
how does a local variable is defined using t-sql? : Transact sql
How do you remove duplicates without using distinct in sql?