Fundamentals of table expressions, Part 7 – CTEs, optimization considerations
SQL Performance
OCTOBER 14, 2020
I explained that when SQL Server optimizes a query involving derived tables, it applies transformation rules to the initial tree of logical operators produced by the parser, possibly shifting things around across what were originally table expression boundaries. Here’s the attempted solution using a CTE: WITH C AS. ( FROM Sales.
Let's personalize your content