Hello,
I have this query which counts the number of pages with an ancestorID:
SELECT COUNT(*) FROM CONFANCESTORS WHERE ancestorid = '123830295';
And a query which counts all pages with specific labels:
SELECT COUNT(*) FROM CONTENT WHERE CONTENTID IN (SELECT CONTENTID FROM CONTENT_LABEL WHERE LABELID IN (SELECT LABELID FROM LABEL WHERE NAME IN ('os-ae','os-ae-r','os-dk','os-n-ae')));
How do I 'merge' the query so I get the total number of pages with the labels: 'os-ae','os-ae-r','os-dk','os-n-ae' with the parent page: 123830295
Many thanks