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 the reason behind not using select * in embedded sql programs?
Explain about rct.
what is a corelated subquerry?
What happens in bind step in a db2 program?
What are the uses of db2 optimizer?
What is db2 bind process?
Can we insert update delete in view?
Can we update view in db2?
What is a bind card?
What is db2 stogroup?
How to find the number of rows in a db2 table?
What is the difference between cursor and select statement?
can we view the access paths created by dbrm ? how ? thx
What is meant by dclgen?
What are bind parameters in db2?