Hi there,
I am wondering if anyone can shed any light on what I am doing wrong in this query. The end game is to be able to input a group ID and find out where this is applied to the tree structure, reporting with the full folder path. Now I have manged to do this but the output is reporting on all folders multiple times. I can't figure out why. Just now I also want this to run as a LiveReport once I figure out the correct query for Oracle SQL.
SELECT a.ParentId as "ParentID",
a.DataID as "DataID",
a.Name as "Name",
sys_connect_by_path(Name,'/') as "Path"
FROM DTree a, DtreeACL b
where a.Subtype = 0
and b.RightId = 72660
and a.DataId=b.DataID
start with a.DataID=82237
connect by prior a.DataId=a.ParentId;
Any help would be much appreciated.