I have a table(More than 35000 records) having two columns 'Dates' and 'Price', i need to get the maximum price from the top 100 records order by dates desc. I wrote the query below
Select top 100 max(price) from tab1
but it is giving the maximum price out of the entire records, any suggestion ?