I am getting an Error when use below SQL statement in the RowSet. Could you please guide on this.
ERROR : "Method Rowset : Invalid SQL :"
Code: Select all
WITH RECURSIVE tgl2 as (
SELECT agrp_id, parent_id
FROM va01
WHERE PARENT_ID = 9
UNION ALL
SELECT g.agrp_id, g.parent_id
FROM va01 g, tgl2 p
WHERE g.PARENT_ID = p.agrp_id
)
SELECT AGRP_ID, tgl2.parent_id FROM tgl2
ORDER BY 2,1 ;
Thanks
Shridhar