Professional Documents
Culture Documents
CSIT115-Lab5 GroupBy Subquery
CSIT115-Lab5 GroupBy Subquery
TASK1 for each department show number of sales agents, and their average salary
TASK2 how many no discounted product are there for each product category
TASK3 show product name and the total income of all products with more than 1 order
TASK4 show total profit per product category, for product categories that have more than one
product with cost above 2500
TASK6 find total profit generated by each agent before discount and after discount along with
agent name and id
TASK7 show product name and order income generated by product for products with more
income from orders than average income generated from all orders
TASK8 show agent names for agents selling products of product category with more than two
products (use derived table)