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 an instance database?
What os does db2 run on?
What is a bind card?
What's The Percentage Free Space ?
What is the clustering index in the db2 database?
What is db2 purescale?
what are bind concepts in db2 cobol?
What are types of indexes?
What is db2 bind process?
How can the firstname and the lastname from the emp table be concatenated to generate complete names?
What is dbrm library?
What is the difference between cursor stability and repeatable read isolation levels?
What is the reason behind not using select * in embedded sql programs?
What is the purpose of rollback and commit?
On which levels locks can be applied?