▲ | wvbdmp 16 hours ago | |||||||||||||||||||||||||||||||||||||||||||
Eh, sometimes you need a quick fix and it’s just extremely concise and readable. I’ll take an INNER JOIN over EXISTS (nice but insanely verbose) or CROSS APPLY (nice but slow) almost every time. Obviously you have to know what you’re dealing with, and I’m mostly talking about reporting, not perf critical application code. Distinct is also easily explained to users, who are probably familiar with Excel’s “remove duplicate rows”. It can also be great for exploring unfamiliar databases. I ask applicants to find stuff in a database they would never see by scrolling, and you’d be surprised how many don’t find it. | ||||||||||||||||||||||||||||||||||||||||||||
▲ | Sesse__ 16 hours ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||
The less verbose way of doing semijoins is by an IN subquery. | ||||||||||||||||||||||||||||||||||||||||||||
|