This query displays the order ID, customer ID, customer's full name, and total quantity of products shipped for orders where the order ID is even and the customer's pincode does not start with 5. It joins tables online_customer, order_header, order_items, and address to retrieve the necessary fields and applies filters to the order ID and pincode values.
This query displays the order ID, customer ID, customer's full name, and total quantity of products shipped for orders where the order ID is even and the customer's pincode does not start with 5. It joins tables online_customer, order_header, order_items, and address to retrieve the necessary fields and applies filters to the order ID and pincode values.
This query displays the order ID, customer ID, customer's full name, and total quantity of products shipped for orders where the order ID is even and the customer's pincode does not start with 5. It joins tables online_customer, order_header, order_items, and address to retrieve the necessary fields and applies filters to the order ID and pincode values.
This query displays the order ID, customer ID, customer's full name, and total quantity of products shipped for orders where the order ID is even and the customer's pincode does not start with 5. It joins tables online_customer, order_header, order_items, and address to retrieve the necessary fields and applies filters to the order ID and pincode values.
Write a query to display the order_id,customer_id and customer fullname, total
quantity of products shipped for order ids which are even and shipped to address where pincode is not starting with "5" -- [NOTE: TABLES to be used - online_customer,Order_header, order_items,address]
select ohl.ORDER_ID,
ocl.CUSTOMER_ID,
concat(CUSTOMER_FNAME,' ',CUSTOMER_LNAME) as Name ,
sum(ol.PRODUCT_QUANTITY) as Total_quantity
from online_customer ocl
join order_header ohl on ocl.CUSTOMER_ID=ohl.CUSTOMER_ID