Comment by magicalhippo
4 years ago
Indeed, I've taught myself to only use JOIN when I actually need some data from the table I join. For everything else I use EXISTS and friends.
I was thinking SQL could do with a keyword for that, like maybe FILTER, that looks like a JOIN but works like EXISTS.
Clickhouse implements an explicit SEMI join. It can be called semi or any, it doesn't really matter. It's just another join modifier
https://clickhouse.com/docs/en/sql-reference/statements/sele...