Query for second maximum salary in each in each department
Answer Posted / arvind kumar
select * from employees e where (select count(salary) from
employees where salary >=e.salary)=2;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Does access use sql?
What are the different datatypes available in PL/SQL?
Write a query to find the names of users that begin with "um" in sql?
What is compound trigger?
What are the different dml commands in sql?
How does postgresql compare to oracle/db2/ms sql server/informix?
What is cte sql?
What is difference between mysql and postgresql?
What is union, minus and interact commands?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.
What is recursive join in sql?
What is rename in sql?
What is sql query optimization?
What is t sql used for?