Hi, I have this query to find all documents which has a category added. Although I need to refine it to search all docs inside a specific parent folder with various childs inside it.
Could you please help?
select DATEPART(YEAR, dt.createdate) "CreateYear", count(*) "CreateCnt"
from Calligo.dbo.dtree dt
join LLATTRDATA lla on dt.dataid = lla.id and lla.defid = 11715186(Category ID) and lla.attrtype = -18 and lla.vernum=dt.VersionNum
where dt.subtype = 144
group by DATEPART(YEAR, dt.createdate)
I appreciate your help.
Manoj