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 is dbrm library?
What is the use of reorg in db2?
Explain about mirror activator disk mirroring?
What is an instance database?
What is the physical storage length of timestamp data type?
What os does db2 run on?
What is the maximum length of sqlca?
What is ibm db2 database?
What is the difference between spufi and qmf?
What is buffer pool and list some of them?
Which components manage deadlocks in db2?
How to resolve deadlock issue
How can record locking be achieved in those DB2 versions which do not support it?
Which are the db2 tools to protect integrity of the database?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?