Is it possible use WITH statment in a create view statment?
because the code below doesn't work with WITH...
CREATE VIEW QS36F/MATERIAL1 AS
( WITH AAA AS ( SELECT HVARI2 AS MATERIAL
WHERE SUBSTRING(HVARI2, 1, 3) = ' ' AND TRIM(HVARI2)<>'' AND
IN (SELECT GRoUP1 FROM QS36F/SGRoup) GROUP BY HVARI2 )
SELECT AAA.*, MATDES.MATDES FROM AAA LEFT JOIN QS36F/MATDES ON
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.