Write a query to find second highest salary of an employee.
Answer Posted / deepshikha
SELECT MAX (sal)
FROM emp a,
(SELECT MAX (sal) max_sal
FROM emp) abc
WHERE a.sal < abc.max_sal
ORDER BY sal DESC;
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
define sql insert statement ? : Sql dba
Which one is better subquery or joins?
Is sql harder than python?
How do I count rows in sql query?
How do I remove sql developer from windows 10?
What are the different dml commands in sql?
What is difference sql and mysql?
The in operator may be used if you know the exact value you want to return for at least one of the columns.
what is the difference between inner and outer join? Explain with example. : Sql dba
What do you understand by pl/sql packages?
Is left join faster than join?
What are the benefits of stored procedures?
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 query cache in mysql? : Sql dba
what is top in tsql? : Transact sql