•7:24 AM
The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns.
Main Table
1. SELECT Customer_Name, SUM (Order_Price)
FROM customer
GROUP BY Customer_Name
2. SELECT Customer_Name, AVG (Order_Price)
FROM customer
GROUP BY Customer_Name
3. SELECT Customer_Name, SUM (Order_Price), Order_Date
FROM customer
GROUP BY Customer_Name, Order_Date
4. SELECT Customer_Name, SUM (Order_Price) , Order_Date
FROM customer
WHERE Cus_Id=3
GROUP BY Customer_Name, Order_Date
5. SELECT Customer_Name, SUM (Order_Price)
FROM customer
GROUP BY Customer_Name, Order_Date
ORDER BY Customer_Name DESC
Main Table
1. SELECT Customer_Name, SUM (Order_Price)
FROM customer
GROUP BY Customer_Name
2. SELECT Customer_Name, AVG (Order_Price)
FROM customer
GROUP BY Customer_Name
3. SELECT Customer_Name, SUM (Order_Price), Order_Date
FROM customer
GROUP BY Customer_Name, Order_Date
4. SELECT Customer_Name, SUM (Order_Price) , Order_Date
FROM customer
WHERE Cus_Id=3
GROUP BY Customer_Name, Order_Date
5. SELECT Customer_Name, SUM (Order_Price)
FROM customer
GROUP BY Customer_Name, Order_Date
ORDER BY Customer_Name DESC
1 comments:
golden goose sneakers
golden goose outlet
golden goose
supreme clothing
goyard
moncler jackets
goyard
goyard handbags
goyard
supreme outlet