I have a table with 500 rows and one column has 3 attributes say “L”, “M” and “S”. I want only the top 20 rows of category “L” and top 15 rows of category “M” and top 40 rows of category “S”.
So how can I count the number and filter out only these specific number of rows in each category into a new output table