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 load utility in db2?
How do you concatenate the firstname and lastname from emp table to give a complete name?
What is rebind in db2?
what is diffrence b/w file-aid tool and file-aid utility???
What is the difference between spufi and qmf?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
Explain about open switch business continuity software?
What is cursor stability in db2?
What are the full forms of spufi and dclgen and why are they used?
What are packages in db2?
What is the physical storage length of date data type?
What is deadlock in db2?
What is innodb buffer pool?
What are the various isolation levels possible?
Which isolation level provides maximum concurrency?