One year only

Boss exercise. The curator wants the titles that were featured in exactly one of the two years — the ones that tell a story. That is the symmetric difference: everything in 2023 that is not in 2024, plus everything in 2024 that is not in 2023.

Wrap each EXCEPT in parentheses as a small subquery so the UNION combines two complete results — without them, the operators would read left to right and give the wrong answer. Sort the final list alphabetically.

Tables in this exercise
featured_2023
id title
featured_2024
id title

Back to the chapter