Please find the sample data attached as file and i have product name and sold quantity and ranked this already. i would need to apply top 50% product by Sold_Quantity or rank should be categorize as ?TOP Selling?, 50% to 75% should be categorize as ?Medium Selling? and 75% to 100% as ?Low Selling?. I gave the sample data. in original, total number of rows may vary. so, these % should apply accordingly. Final result, i would need the column as Product_Name, Sold_Quantity,Rank, Category(Top/Medium/Low). How to achieve this. any sample query please