View Single Post
  #3 (permalink)  
Old 08-02-2006, 01:21 PM
Dan
 
Posts: n/a
Default ANY answer. Re: How to find second highest value of a column in a table?

[sql]
SELECT TOP 1 quantity FROM Trade
WHERE quantity < (SELECT MAX(quantity) FROM Trade)
ORDER by quantity DESC;
[/sql]

Is this query will work? If it works what should be the output?

regards,
venkat
Edit/Delete Message Reply With Quote