how to check the 3rd max salary from an employee table?
Answer Posted / gourvendra singh
In oracle you can find the 3rd max salary with the help of
the command:-
select sal from(select sal from(select distinct sal from
emp order by sal desc)
where rownum <=3 order by sal asc) where rownum=1;
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Does sql support programming?
Can we join same table in sql?
How do you update sql?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
When sql appeared?
what are tables and fields? : Sql dba
What is scope of pl sql developer in future?
Can 2 queries be executed simultaneously in a distributed database system?
What is dml with example?
List the ways to get the count of records in a table?
Where is all the data on the internet stored?
Explain what is a field in a database and record in a database?
Why truncate is faster than delete?
What are inner and outer joins examples of both?
what are the 'mysql' command line options? : Sql dba