HI All,
I have a simple Livereport to show me the folders that meet a strict criteria (report below). However for some reason the Folder starting with '03 TAC xxxxxxx' do not show in my results, any ideas?
SELECT DISTINCT d.name, d2.name as Parent_Folder, d.dataid AS dataid, d6.name as Structure
FROM dtree d
INNER JOIN LlAttrData f ON (d.DataID = f.ID AND f.attrid = 6 AND f.DefID = 4208)
Inner join dtree d2 on d.parentid = d2.dataid
Inner join dtree d3 on d2.parentid = d3.dataid
Inner join dtree d4 on d3.parentid = d4.dataid
Inner join dtree d5 on d4.parentid = d5.dataid
Inner join dtree d6 on d5.parentid = d6.dataid
Where d.subtype = 0
and d.name IN('03 TAC%','01 CAF','02 Correspondence','04 Factors / Enquiry Forms / AOB','05 Non File Plan Documents')
and d2.name = '01 Early Intervention & Prevention'
AND f.valstr = 'Child'
ORDER BY d.dataid