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 dbrm? When it will be created?
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 to test SQL -911 error while developing COB-DB2 program
How do I delete a table in database?
What is the advantage in De-normalizing tables in DB2?
How to execute stored procedures?
What is db2 purescale?
How do you concatenate the firstname and lastname from emp table to give a complete name?
What is dbrm in db2 database?
How connect db2 database to datastage?
List some fields from sqlca?
Are view updateable?
What are union and union all?
Why do we use cursor?
How to check table size in db2 sap?