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 / pratap
A)Select product, Max (cost) from product where cost <
(select max (cost) from product);
Is This Answer Correct ? | 7 Yes | 13 No |
Post New Answer View All Answers
How to create db2 table in mainframe?
What is db2 command?
What db2 400?
Mention the length of physical storage of the given data types of db2 – date, timestamp, time
What is runstats utility in db2?
How is the value function used?
What is the use of commit in db2?
How is deadlock resolved?
Explain package in db2 and its advantages?
What are the rules for db2 programming?
Before you give the explain statement, what are the prerogatives?
What is the difference between plan and package in db2?
How to check sequence on a table in db2?
Is db2 a mainframe database?
What is dbrm in db2 database?