Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
tblCustomers
-----------------------------
customerID int
customerName varchar(100)
customerEmail varchar(50)
tblOrders
-----------------------------
orderID int
customerID int
shipToAddress varchar(100)
orderDate datetime
tblOrderItems
-----------------------------
orderItemID int
orderID int
productID int
quantity int
priceGiven money
SELECT
C.customerID,
C.customerName,
C.customerEmail,
O.orderID,
O.shipToAddress,
O.orderDate,
SUM(I.quantity) AS totalItems
FROM
tblCustomers C
LEFT OUTER JOIN tblOrders O on C.customerID = O.customerID
LEFT OUTER JOIN tblOrderItems I on O.orderID = I.orderID
GROUP BY
C.customerID,
C.customerName,
C.customerEmail,
O.orderID,
O.shipToAddress,
O.orderDate