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
What is the difference between bind and rebind in db2?
What is db2 connect?
Who uses db2?
Can one database have multiple instances?
What is the difference between spufi and qmf?
Explain packages.
What is a page in db2?
Explain how can you do the explain of a dynamic sql statement?
What happens in bind step in a db2 program?
Explain about dbrm.
Can we update view in db2?
What is the role of union all and union
Which component is responsible for processing sql statements and selecting access paths?
How can you find out the # of rows updated after an update statement?
What is db2 catalog database?