I have a table(product),It contain fields(productname,cost).
I want to retrieve the product name ,which cost is second
maximum in the table?
Answer Posted / pratap
A)Select product, Max (cost) from product where cost <
(select max (cost) from product);
| Is This Answer Correct ? | 7 Yes | 13 No |
Post New Answer View All Answers
Mention the various locks that are available in db2.
How do you stop a db2 database in linux?
What is a db2 collection?
Describe major components of db2?
Why do chiropractors use drop table?
What is db2 optimizer?
What is dbrm? What it contains?
How can we retrieve the total number of records in RPG & CLLE?
What is the maximum No of rows per page?
Give the name of some fields form sqlca.
What is schema in db2?
What is image copy in db2?
Explain package in db2 and its advantages?
How can you do the explain of a dynamic sql statement?
How do I connect my db2 database to ibm?