Use a CTE in a query
You can use a common table expression (CTE) to simplify creating a view or table, selecting data, or inserting data.
You can use a common table expression (CTE) to simplify creating a view or table, selecting data, or inserting data.