Skip to content

re: SQL 201: Why you should use SQL CTEs VIEW POST


People reading this post, please be wary.

CTEs will not always materialize (store in memory) the intermediate results.

For example, if you join the results of a CTE, you may Infact execute that CTE for each row in the joined table.

Also, for SQL Server, attempts to force materialization may not always work.

code of conduct - report abuse