Showing available vocabularies
Owned by david, visibility: Public
select slug, title, description from ftc_vocabulary fv
17 rows
Duration: 1.93ms
select v.title, ve.code, ve.title, ve.current from ftc_vocabulary v inner join ftc_vocabularyentries ve on v.id = ve.vocabulary_id where v.slug = %(slug)s order by ve.code
0 rows
Duration: 2.19ms
with has_classification as ( select distinct oc.org_id from ftc_vocabulary v inner join ftc_vocabularyentries ve on v.id = ve.vocabulary_id inner join ftc_organisationclassification oc on ve.id = oc.vocabulary_id where v.slug = %(slug)s ) select source_id as source, count(*) as organisations, sum(case when (c.org_id is not null) then 1 else 0 end) as has_classification, sum(case when (c.org_id is null) then 1 else 0 end) as no_classification, sum(case when (c.org_id is null and o."active") then 1 else 0 end) as no_classification_active from ftc_organisation o left outer join has_classification c on o.org_id = c.org_id group by source
26 rows
Duration: 670.64ms