I'll admit to giving little thought to the legibility of my SQL - this is a quick read, with some solid tips.
Do you do anything in particular to make your queries more digestible?
Do you do anything in particular to make your queries more digestible?
I fucking love CTE's for breaking apart ugly looking queries. They make everything significantly easy to read.