Query for second maximum salary in each in each department
Answer Posted / sampath pallerla
select distinct(a.sal) from emp a where 2=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Does truncate free space?
What found sql?
What is group function in sql?
What are all the common sql functions?
What are the main features of cursor?
What is a pragma statement?
What are the dml statements?
How do I upgrade sql?
What is set transaction?
Can a view be mutating? If yes, then how?
Can ddl statements be used in pl/sql?
What is parallel hint?
How do I run a pl sql program?
How to Declare Fixed Length String Value In PL SQL
What is difference between sql and mysql?