With sql we can make unions and intersections.
But does sql manage exclusivity?
Imagine we have 2 tables:
- one containing "all the people"
- the second containing "a short list of people", which can be empty
Can we create a view containing: the "list", if not empty, otherwise the "all people table" ?
In other words I need a different join (inner or outer) depending on the existence of a not empty table.
Thanks for your help,