Professional Documents
Culture Documents
SQL 2
SQL 2
Write a query to display customer id, customer full name, total quantity and total
value (quantity*price) shipped where mode of payment is Cash and customer last name starts with
'G' --[NOTE: TABLES to be used - ONLINE_CUSTOMER, ORDER_ITEMS, PRODUCT, ORDER_HEADER]
sum(ol.PRODUCT_QUANTITY) as total_quantity,
sum(ol.PRODUCT_QUANTITY*pro.PRODUCT_PRICE) as total_value
from online_customer ca
group by CUSTOMER_ID;