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 / dinesh m
A)
select productname from product
where cost=(Select max(cost) from product where cost not in
(select max (cost) from product) );
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between alias and synonym in db2?
Define db2.
What does db2 mean?
What is buffer pool?
How is deadlock resolved?
What is access path in db2?
What is sqlca’s maximum length?
What is a Foreign Key?
Is db2 relational database?
What is cursor stability in db2?
What is runstats and reorg in db2?
What happens in bind step in a db2 program?
can we view the access paths created by dbrm ? how ? thx
What is a bind in db2?
Mention data types used in db2 ?