AS
SQL-L023A single whitespace is expected after AS
in WITH
clause.
WITH plop AS(
SELECT * FROM foo
)
SELECT a FROM plop
Add a space after AS, to avoid confusing it for a function.
WITH plop AS (
SELECT * FROM foo
)
SELECT a FROM plop