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 are tables in sql?
What problem one might face while writing log information to a data-base table in pl/sql?
Can we create foreign key without primary key?
What is database sql?
What are the types of sql commands?
how many ways we can we find the current date using mysql? : Sql dba
What is recursive join in sql?
What is autocommit sql?
What is meant by <> in sql?
Explain dml and ddl?
what are enums used for in mysql? : Sql dba
Can unique keys be null?
Is primary key clustered or nonclustered?
what is cross join? : Sql dba
What is type and rowtype in pl sql?