Query for second maximum salary in each in each department
Answer Posted / nancy singhal
select max(salary) from emp where salary in(select salary
from emp where salary not in(select max(salary) from emp));
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
what are the differences among rownum, rank and dense_rank? : Sql dba
what is collation? : Sql dba
What is the best free sql database?
Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com
What is function and procedure in pl sql?
What language is oracle sql developer?
What are the syntax and use of the coalesce function?
What are hotfixes and patches?
Why is pl sql needed?
What are sql commands?
What is group function in sql?
What is sql data?
Is a table valued function object?
Is oracle sql free?
What is the difference between partition and index?