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 / pc
select productname from product where cost=(select max(cost) from product where cost<> (select max(cost) from product));
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of value function?
What is clone table?
What is meant by union and union all?
What is db2 stogroup?
How do I start db2 in windows?
What does a deadlock mean in DB2?
What's The Percentage Free Space ?
is it compulsory commitment control in journal?
What is performance tuning db2?
How will you return the number of records in table?
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2
What is multi row fetch in db2?
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
What is precompiler in db2?
How does db2 sample database connect?