Expected \"(\" or keyword SELECT but got keyword WITH at

Knowledge Drop

Last tested: Jan 17, 2019
 

This is one example of an error you can get by using a CTE in a derived table. See this article for more info: Can you use CTEs (WITH syntax) in a PDT? (common table expressions, aka WITH param).

This content is subject to limited support.                

Version history
Last update:
‎07-07-2021 01:53 PM
Updated by: