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 / mr. cooooool
Hi............
SELECT PRODUCTNAME FROM PRODUCT WHERE COST = (SELECT MAX(COST)
FROM PRODUCT WHERE COST > (SELECT MAX(COST) FROM PRODUCT));
THANKS
REGARDS
RAVINDRA BISHT
Is This Answer Correct ? | 13 Yes | 15 No |
Post New Answer View All Answers
What is the connection string to connect to the DB2 Database ?
what is the responsibility of the construction superintendent
Mention the various locks that are available in db2.
Mention the definition of cobol in varchar field.
Is the primary key a clustered index?
what is db2 restart?
What is the use of reorg in db2?
What is rct?
What is a db2 tablespace?
What is scrollable cursor in db2?
Explain the function done by data manager?
What is image copy in db2?
What is a trigger in the db2 database?
What is dbrm library?
What is commit in db2?