x JOIN y ON x.id=y.id
How is this advanced?
The fact that there's an endless number of pitfalls[1] is a characteristic of the operation you're trying to achieve, not a deficiency of SQL. In fact if anything I would say that SQL does a great joke at letting you tweak how you want all those edge cases to be handled.
[1] E.g. What happens if some records are missing on one or the other sides of the join? What happens if ids are not unique?