Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / surajit pathak
select * from emp e1
where 2>(select count(1) from emp e2
where e2.sal>e1.sal)
order by sal desc
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is type and rowtype in pl sql?
Why do we use sqlite?
What are sql constraints?
What is coalesce sql?
Enlist some predefined exceptions?
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 are records give examples?
How do I find duplicates in a single column in sql?
What is rank () in sql?
what is online transaction processing (oltp)? : Sql dba
How can a function retun more than one value in oracle with proper example?
how to create a test table in your mysql server? : Sql dba
What are the usages of sql?
How much does a sql dba make? : SQL DBA
What is the meaning of disabling a trigger?