Query for second maximum salary in each in each department
Answer Posted / sureshramsing
select * from(select row_number() over(partition by deptno order by sal desc) rn,a.* from emp a) where rn=1;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is before and after trigger?
what are properties of a transaction? : Sql dba
Which sql most popular?
What is the difference between the conventional and direct path loads? : aql loader
Will truncate release space?
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 a relationship and what are they? : Sql dba
Can we use views in stored procedure?
Is sql a oracle?
Which are the different character-manipulation functions in sql?
What is not equal in sql?
How do I view output in sql developer?
explain access control lists. : Sql dba
What is a stored procedure in sql with example?
What are the benefits of pl sql?