Can anybody tell me the sql for getting the top 10 and WQorst ten selling products if I had the following basic sql....
Select
Product_id,
Net_Sales,
Rank(Net_Sales)
From Product
I can get the rank value but am not sure how to get the top 10 and bottom 10.
Thanks in advance.
A.
Select
Product_id,
Net_Sales,
Rank(Net_Sales)
From Product
I can get the rank value but am not sure how to get the top 10 and bottom 10.
Thanks in advance.
A.