INTERSECT
INTERSECT keeps the rows that appear in both queries, once each.
task
Product ids sold both in 2025 and in 2026 (by orders.placed_at).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
INTERSECT keeps the rows that appear in both queries, once each.
Product ids sold both in 2025 and in 2026 (by orders.placed_at).