Tags / union
Understanding MySQL Joins and Unions for Filtering Duplicates
Consolidating SQL UNION with JOIN: A Deeper Dive
Top 1 Record per Product with Ties: Using ROW_NUMBER() Function for SQL Queries
How SQL Handles NULL Values When Using Union Queries to Preserve Nulls and Include All Relevant Data