DEV Community

[Comment from a deleted post]
Collapse
 
pyrodogg profile image
Skyler Kehren

I hadn't considered that CTEs are also a nice way to alias sub datasets in general cases. Thanks. I can already see a few of my reporting queries that would benefit from being organized in this way.

I find myself only reaching for CTEs when I'm using them recursively.