I am trying to run the following query to find the instances of missing folders:
select count (*) from abc_folder where any i_folder_id NOT IN (select r_object_id from abc_folder)
My docbase has the following folder structure:
1234567890 ( This is a case id) r_object_id (this is the folder that is missing)
Legal i_folder_id
Financial
Case Initiation
Correspondence
The issue is that some are being created without the main case id folder. I am trying to find first the count of these instances and then the case id of these instances.