Write a query to find second highest salary of an employee.
Answer Posted / om patel
select (distinct(a.sal) from emp e where rownum=&N(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is update query?
What are pl/sql cursors?
Is vs as in pl sql?
What is output spooling in sql*plus?
what is a tablespace? : Sql dba
How many subqueries can be nested in a statement?
How can I get the number of records affected by a stored procedure?
is it possible to pass an object or table to a procedure as an argument?
how to write date and time literals? : Sql dba
What is a stored procedure in sql with example?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
Is oracel sql developer written in java?
What is %type in sql?
how to create a new view in mysql? : Sql dba
What is java sql connection?