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 / ananth
We can also use correlated subquery for this..
Select product from product a where 1 =
(select count(*) from product b where a.cost < b.cost);
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is sqlca?
List some fields from sqlca?
What is role in db2?
what is the responsibility of the construction superintendent
What is db2 bind process?
How to create backup table in db2?
Why cursor is used in db2?
How do I delete a column in db2?
What is cloudant database?
Who uses db2?
Mention the location where the output received from explain statement is stored.
What is node in db2?
How can we read records for specific member in CL? AND rpg?
Explain about dbrm.
Which isolation level provides highest data integrity?