Hi Masters,i try to build some query on hierarchy data and after two days thinking about it i have null result :( what i need is union more trees tables by root id to one table. Can you help me ?-- tree-- this query is functional: OKWITH tree (sid, parend_id, level) as( SELECT sid, parend_id, 0 as level FROM table1 WHERE parent_id = 100 -- root (id) UNION ALL SELECT c2.sid, c2.parent_id, tree.level + 1 FROM table1 c2 INNER JOIN tree ON tree.sid = c2.parent_id)
..but this query work with one root id (100); what can i do when i have moore roots id ? -> generate each tree table separated by roots id and then all tables join to one (union).Uff ..I hope this is understandable :)Thank you so mutch for helpWaltz