How to get Top 10 Salaries from a Table
Answer Posted / abirami
Sorry.. Answer 1 given by me is incorrect.
Correct Query is
select disntinct salary from tablename
Order by salary
Fetch first 10 rows only
| Is This Answer Correct ? | 9 Yes | 13 No |
Post New Answer View All Answers
What is the reason behind not using select * in embedded sql programs?
What does db2 plan contain?
What is dbrm? What it contains?
What is the difference between cursor stability and repeatable read isolation levels?
What is database reorganization?
What is a trigger in the db2 database?
Describe major components of db2?
How to test SQL -911 error while developing COB-DB2 program
run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...
what is the responsibility of the construction superintendent
What is check constraint. Explain with example.
Is it possible using max on a char column?
How do you stop a db2 database in linux?
What are the various isolation levels possible?
What is rebind in db2?