=== modified file 'resources/sql/integritychecks.sql' --- resources/sql/integritychecks.sql 2011-09-11 20:23:37 +0000 +++ resources/sql/integritychecks.sql 2011-11-10 19:24:16 +0000 @@ -59,6 +59,15 @@ join reporttable t using(reporttableid) where t.name='Indicators'; +-- Show collection frequency of data elements with average aggregation operator + +select distinct de.name, periodtype.name +from dataelement de +join datasetmembers using (dataelementid) +join dataset using (datasetid) +join periodtype using(periodtypeid) +where de.aggregationtype = 'average'; + -- Recreate indexes on aggregated tables drop index aggregateddatavalue_index;