Loading Similar Posts
Problem Statement: Using the UNION operator, in one list return all customers who do not have an invoice and all products that were not sold.
For each customer without an invoice, return:
For each product without an invoice, return:
The columns must be in the order shown, but row order does not matter.
Table Definitions (Schema Snippet):
(Note: The query will also require joining against aninvoiceand aninvoice_itemtable to filter out those with existing sales)