How to get Top 10 Salaries from a Table
Answer Posted / bharath
In Oracle,
select e1.* from emp e1
where &n>(select distinct(COUNT(*)) from emp e2
where e1.sal>e2.sal)order by sal;
Place where n=10
we get,
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is a storage group (stogroup)?
is it compulsory commitment control in journal?
What is a plan and package in db2?
What is load utility in db2?
What is temporal table in db2?
What is check constraint in db2?
Define declaration generator (dclgen).
What does reorg do in db2?
Why select is not preferred in embedded sql programs?
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
What is the difference between oracle and db2?
What is catalog database in db2?
Which component is used to execute the sql statements?
Explain dclgen.
What is bind package and plan in db2?