I have a table products and i have column standard_cost
and I want to get the standard cost of the product which lies in 10th highest position. So far I tried
SELECT t1.*
FROM (SELECT STANDARD_COST
FROM OT.PRODUCTS
ORDER BY STANDARD_COST DESC) t1
WHERE ROWNUM=1
ORDER BY t1.STANDARD_COST ASC;
But it's giving me the same value when I first sorted descending of inner query and then ascending in ORACLE. What is the problem in my query?