There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........
Answer Posted / pavan
try this one....
select * from emp where emp_Id = (select emp_Id from emp
order by sal)
and count(*) < 6;
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is performance tuning db2?
If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?
Define data page.
What is a bind in db2?
can all users have the privilage to use the sql statement select * (dml)?
What is the physical storage length of timestamp data type?
What are the various isolation levels possible?
How would the varchar column remarks defined?
My sql statement select avg(salary) from emp yields inaccurate results. Why?
What is the difference between bind and rebind in db2?
How to check last update on table in db2?
What is difference between rollback and commit?
What is the reason behind not using select * in embedded sql programs?
What does runstats do in db2?
List out the buffer pools in db2