Is it possible in SQL use a reference inside a Common Table Expression inside another C.T.E in the same query? Here there is an example:
WITH CT1 AS (SELECT * FROM T),
CT2 AS (SELECT * FROM CT1)
SELECT * FROM CT2;
I tried this in SQLite3 and it works, I just wanted to know if it's part of standard SQL. Any advices concerning this argument will be highly appreciated. Thank you very much!