There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........
Answer Posted / kasyapa
select * from emp A where 4 = (select count(*) from emp B
where A.sal<B.sal)
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
When the like statement is used?
Define predicate?
What's The Error Code For Unique Index Voilation?
What parameters are used to control the free space in DB2?
Can we insert update delete in view?
What is the usage of open cursor command?
What is a cursor in programming?
What is db2 bind process?
Can one database have multiple instances?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
Why select is not preferred in embedded sql programs?
What is a dbrm in db2?
How will you return the number of records in table?
Explain package in db2 and its advantages?
What are the different types of base tables?