Answer Posted / sivaraman
select * from table1 a where n = (select count(distinct
(sal)) from table1 b where b.sal>a.sal)
n is value of n it should be numeric....
Is This Answer Correct ? | 15 Yes | 15 No |
Post New Answer View All Answers
How do I connect my db2 database to ibm?
List down the types of triggers in the db2 database?
How can you count the number of rows from a table tab?
What is copy pending and check pending in db2?
What is a cursor in programming?
What is load utility in db2?
What is concurrency?
How to test SQL -911 error while developing COB-DB2 program
What is reorg?
Can you tell me how can you find out the # of rows updated after an update statement?
What is the physical storage length of the data types date, time, and timestamp?
What is the syntax for FETCH in DB2 ?
What is the use of commit in db2?
How can you classify the locks in db2?
What is db2 and what is the use of db2 optimizer?