How to retrieve a second highest salary from a table?
Note:Suppose salaries are in duplicate values
eg:
Name Sal
Malli 60000
Pandi 60000
Rudra 45000
Ravi 45000
Answer Posted / rajat
SELECT * FROM (
SELECT RANK()OVER( ORDER BY SALARY DESC) NUM, A.* FROM RAJ A)
WHERE NUM=2;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how many triggers are allowed in mysql table? : Sql dba
Is full outer join same as cross join?
What is the use of pl/sql table?
Write the alter statement to enable all the triggers on the t.students table.
Which table is left in join?
what is a composite key ? : Sql dba
What are sql injection vulnerabilities?
What schema means?
What is nested table in pl sql?
What is the sql*loader? : aql loader
what is the difference between cluster and non cluster index? : Sql dba
What are crud methods?
Can we use rowid as primary key?
What is an alias command?
Explain the savepoint statement.