News for hackers. Stuff that matters.
Re:Legible and efficient SQL, with CTEs by jgavris on Friday September 04, 2015 @05:13PM (#10172900)
Legible? Absolutely. But it's important to keep in mind that CTE's are optimization fences. Optimizations like predicate pushdown are not currently available. More complicated queries may benefit from being rewritten with subqueries.