Union
Union sits in two year tables. Arun’s job is 2024 + 2025 names. Write that first.
For Union, the query planner is in play. Don’t blame it until you have traced 2024 + 2025 names.
Skip Union and UNION ALL when you needed distinct shows up in two year tables.
Union shows up in two year tables. Name 2024 + 2025 names, not “a real-world scenario”.
Union trap — UNION ALL when you needed distinct. Arun loses marks for that every viva.
After Union, Arun should still remember UNION ALL when you needed distinct.
Close Union with — “If I skip it, 2024 + 2025 names goes wrong like this: UNION ALL when you needed distinct.”
Board: 2024 + 2025 names. Dry-run Union. Name the trap: UNION ALL when you needed distinct.