WITH CLAUSE in Netezza -


unable use join inside clause

with empcte(empid, empname, mgrid, lvl) (    -- anchor member (am)   select empid, empname, mgrid, 0   employees   empid = 7   union    -- recursive member (rm)   select e.empid, e.empname, e.mgrid, m.lvl+1   employees e     join empcte m       on e.mgrid = m.empid ) select * empcte e order e.empid   

error [42s02] error: relation not exist admin.empcte

can 1 please give alternate solutions ..thanks

the problem here not join, referencing cte within own definition.

netezza not (as of v7.2) support recursive cte/with expressions.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -