I fucking love CTE's for breaking apart ugly looking queries. They make everything significantly easy to read.