Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / nagarjuna.reddy
select max(sal) from emp where sal <> (select max(Sal) from
emp)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of %type and %rowtype data types?
What is the difference between drop and truncate commands?
What is a call statement? Explain with an example.
Which join is like an inner join?
Name three sql operations that perform a sort.
Why self join is used in sql?
What will you get by the cursor attribute sql%found?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
What is sql*loader and what is it used for?
Is it mandatory for the primary key to be given a value when a new record is inserted?
what is an index? : Sql dba
what are the authentication modes in sql server? How can it be changed? : Sql dba
what is the difference between inner and outer join? Explain with example. : Sql dba
Do we need to create index on primary key?
what are set operators in sql? : Sql dba