How to get Top 10 Salaries from a Table
Answer Posted / bharath
select sal from(select ename,sal rownum from emp orderby sal
desc group by sal,rownum)where topsal='&nth';
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the use of predicate?
What is the role of schema in the db2 database?
Are view updateable?
How can you classify the locks in db2?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
What is the syntax for FETCH in DB2 ?
What are the bind parameters ibm db2?
What is the role of the data page in the db2 database?
What is db2?
What's The Percentage Free Space ?
can we view the access paths created by dbrm ? how ? thx
Explain how can you do the explain of a dynamic sql statement?
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What is the use of runstats in db2?