There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........
Answer Posted / nagireddy
select max(sal) from emp a where 5=(select count(distinct sal)
from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
How to find schema of a table in db2?
by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?
How do I change the column size in db2?
Explain db2.
Can one database have multiple instances?
What are the 2 sqlcodes that are returned?
What is bind plan?
What is the difference between dbm cfg and db cfg file in db2 ?
What is catalog database in db2?
What is explain plan in db2?
What is the use of dclgen in db2?
can we view the access paths created by dbrm ? how ? thx
What is lock escalation in db2?
How to execute stored procedure in db2 command editor?
Where do you specify them?