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 / vineeth varghese
(Select product from product where cost = (Select Max (cost) from product where cost not = (select max (cost) from product)))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are packages in db2?
What is cloudant database?
What is null value in db2?
What is the difference between dbm cfg and db cfg file in db2 ?
What are the full forms of spufi and dclgen and why are they used?
Explain in brief how does db2 determine what lock-size to use?
How do I connect my db2 database to ibm?
How to check table size in db2 sap?
Outputs of explain are with matchcols = 0. What does this signify?
What is concurrency?
What is the function of logging in the db2 database?
What kind of database is db2?
What is image copy in db2?
What is bind in db2?
What is null indicator in db2?