Using SQL database management systems
Invoices:
CUSTOMER INVOICE NUMBER OF ITEMS SOLD
1 1 5
2 3 7
1 5 8
1 6 9
Customer Overview:
NAME CUSTOMER AMOUNT INVOICE NUMBER OF ITEMS SOLD
Maxim Sc 1 2500 1 5
Maxim Sc 1 2500 5 8
Maxim Sc 1 2500 6 9
Given tables "invoices" and "customer overview", what other query would give me the same result set as the following:
"SELECT DISTINCT a.customer_id, a.invoice_no, a.number_of_items_sold FROM invoices a LEFT JOIN customer_overview b ON a.customer_id;"?