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 explain in db2?
What is the syntax for creating a table in the db2 database?
What is view db2?
What is the maximum size of a char data type in db2?
How do I delete a table in database?
What is dbrm? What it contains?
What is data manager?
What r the comman abends in db2, jcl and cobol???????
can all users have the privilage to use the sql statement select * (dml)?
What are db2 objects?
Are views updateable?
How to execute stored procedures?
before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?
Define declaration generator (dclgen).
What do you mean by rollback?