UNION dedupe
UNION is UNION ALL followed by removing duplicate rows.
task
All countries seen in customers, once each, written as a UNION of two queries: the country of every customer, and the country of customers who have an order.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
UNION is UNION ALL followed by removing duplicate rows.
All countries seen in customers, once each, written as a UNION of two queries: the country of every customer, and the country of customers who have an order.