Teradata SQL Syntax - Common Table Expressions
问题 When using multiple CTE's in MSSQL 2008, I normally separate them with a comma. But when I try this in a Teradata environment, I get an error with the syntax. Works in MS SQL: WITH CTE1 AS (SELECT TOP 2 Name FROM Sales.Store) ,CTE2 AS (SELECT TOP 2 ProductNumber, Name FROM Production.Product) ,CTE3 AS (SELECT TOP 2 Name FROM Person.ContactType) SELECT * FROM CTE1,CTE2,CTE3 Now, attempting to put into Teradata syntax: WITH RECURSIVE CTE1 (Name) AS (SELECT TOP 2 Name FROM Sales.Store)