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
i want to maintain uniqueness on pdf without make lf??????????
What is clone table?
What is the maximum size of a char data type in db2?
Define db2.
What is the maximum length of sqlca?
Define declaration generator (dclgen).
Where can you declare a cursor in a cobol-db2 program?
Is db2 relational database?
What is package in db2 mainframe?
What is a bind card?
What do you mean by between and in? Is between inclusive of specified range values?
what is db2 restart?
Why do we need reorg in db2?
What is db2 command?
Explain the contention situations caused by locks?