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 an instance in db2?
How to find the number of rows in db2 tables?
What is release/acquire in bind?
Before you give the explain statement, what are the prerogatives?
What is buffer pool and list some of them?
What are the different types of base tables?
before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?
Is the primary key a clustered index?
Is it possible to create an Instance in DB2 using DB2 Control Center ?
What is concurrency?
What is a db2 schema?
Can one database have multiple instances?
Can we update view in db2?
What is dbrm?
How do you pull up a query which was previously saved in qmf?