Description
Implement common table expression:
WITH variable AS (
<select or expression>
) SELECT .... FROM variable ....
Currently we have a similar feature with the LET clause, but LET is dependent on the FROM clause (ie you can only have a LET variable after FROM), and you cannot have the FROM clause depend on the variable. CTE bridges this gap.