> Try and write any complex SQL as a series of semantically meaningful CTEs
I find this helps a heck of a lot with maintainability + debugging as well
I find this helps a heck of a lot with maintainability + debugging as well
I love CTEs, but the query semantics matter too.