Sales Data for all customers and products MySQL Please! The query should return all customers ,even customers
Fantastic news! We've Found the answer you've been seeking!
Question:
Sales Data for all customers and products
MySQL Please!
The query should return all customers ,even customers without invoices and also products,even those products that were not sold.Print NA for null customers or product or null quantity . Order by customerid, productid, and invoiceid
Tables:
Customer
idcustomer_namecity_idcustomer_addresscontact_personemailphone
Product
idskuproduct_nameproduct_descriptioncurrent_pricequantity_in_stock
Invoice
idinvoice_numbercustomer_iduser_account_idtotal_pricetime_issuedtime_duetime_paidtime_canceledtime_refunded
Invoice_Item
idinvoice_idproduct_idquantitypriceline_total_price
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: