Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / khandu shinde
select a.sal
from (
select sal ,rownum no
from (
select distinct sal
from emp
order by sal desc
)
) a
where a.no=2
| Is This Answer Correct ? | 16 Yes | 6 No |
Post New Answer View All Answers
what is top in tsql? : Transact sql
What is record variable?
What are analytical functions in sql?
What is a sql instance vs database?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
What is offset in sql query?
What are dml commands?
What is denormalization in a database?
What is schema in sql example?
Why left join is used in sql?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
How to find 3rd highest salary of an employee from the employee table in sql?
Can you join a table to itself?
Can we use ddl statements in stored procedure?
How many sql are there?