Skip to main content

CTEs are fantastic

I’ve been a big fan of CTEs. In many cases, they are easier to reason with. They are also faster when the same datasets need to be reused.

https://www.postgresql.org/docs/current/queries-with.html