how to find the second highest salary from emp table?
Answer Posted / manjusha
select * from emp e1
where 2=(select count(distinct salary) from emp e2
where e1.sal<e2.sal);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the difference between char and varchar data types? : Sql dba
Why are cursors used?
What is file based approach?
What happens when a trigger is associated to a view?
what is transaction? : Sql dba
what is heap table? : Sql dba
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 aggregate functions in sql?
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
what are ddl statements in mysql? : Sql dba
What is a unique constraint?
Define select, insert, create, delete, update, drop keywords
Can a procedure in a package be overloaded?
What is trigger with example?
explain mysql aggregate functions. : Sql dba