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 reorg in db2?
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
How does db2 sample database connect?
Give a brief description of db2 isolation levels?
Mention the location where the output received from explain statement is stored.
What is db2? Explain.
What is the picture clause of null indicator variable?
Why do we use cursor?
What is the reason behind not using select * in embedded sql programs?
What do you mean by storage group (stogroup)?
What is a db2 collection?
What is the difference between cursor stability and repeatable read isolation levels?
i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?
Which command is used to remove all rows from a table?
Which components manage deadlocks in db2?