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 / pc
select productname from product where cost=(select max(cost) from product where cost<> (select max(cost) from product));
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between db2 and oracle?
What is image copy in db2?
How to find primary key of a table in db2?
What is access path in db2?
How do you find the maximum value in a column in db2?
Name the lockable units in DB2?
What are the full forms of spufi and dclgen and why are they used?
Who uses db2?
What is the default page size of buffer pools?
What is coalesce in db2?
Explain about dbrm.
What is ibm db2 used for?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
Is db2 free?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?