Hi,
I am using below query to list only Level 1 folders. Below query list everything underneath. How to apply level filter?
SELECT dt.name
from DTreeAncestors anc, DTree dt
where anc.AncestorID = XXXXX and
anc.DataID = dt.DataID
and dt.subtype in (0)
ORDER BY dt.name