How to get Top 10 Salaries from a Table

Answer Posted / meena dogra

The query will be like this:

Select distinct salary from table
order by salary desc
fetch first 10 rows only

Is This Answer Correct ?    31 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of rollback and commit?

595


How can you classify the locks in db2?

636


What is commit in db2?

596


What is the result of open cursor statement?

638


What is host variable?

597






How to check sequence on a table in db2?

600


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1651


How to get the ddl of a table in db2?

679


What is buffer pool and list some of them?

630


What is sqlca?

623


What is a bind card?

681


How many databases are there?

592


What happens in bind step in a db2 program?

569


What is bufferpool in db2?

579


What is cursor in dbms?

592