Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / reddy
select distinct (a.sal) from emp a where &n = (select count
(distinct(b.sal) from emp bmwhere a.sal<=b.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is package in pl sql?
What are the advantages of stored procedure?
What are two statement types in sql?
what is the difference between char_length and length? : Sql dba
Do we need to create index on primary key?
What is a join query?
what is view? : Sql dba
How to run sql functions in pl/sql?
What are predefined functions in sql?
Is sql developer case sensitive?
What is the main difference between sql and pl/sql?
What is sequence in sql?
How many times can we commit in a loop?
What is user in sql?
What is procedure explain with example?