     'awc_num_open, ' ||
     'wer_weighed, ' ||
     'wer_eligible, ' ||
-    'thr_eligible_child, ' ||
-    'thr_rations_21_plus_distributed_child, ' ||
-    'thr_eligible_ccs, ' ||
-    'thr_rations_21_plus_distributed_ccs, ' ||
-    'thr_score, ' ||
     'awc_score, ' ||
     'num_awc_rank_functional, ' ||
     'num_awc_rank_semi, ' ||

    'cases_ccs_pregnant = ut.cases_ccs_pregnant, ' ||
    'cases_ccs_lactating = ut.cases_ccs_lactating, ' ||
    'cases_ccs_pregnant_all = ut.cases_ccs_pregnant_all, ' ||
    'cases_ccs_lactating_all = ut.cases_ccs_lactating_all, ' ||
    'thr_eligible_ccs = ut.thr_eligible_ccs, ' ||
    'thr_rations_21_plus_distributed_ccs = ut.thr_rations_21_plus_distributed_ccs ' ||
  'FROM (SELECT ' ||
    'awc_id, ' ||
    'month, ' ||
    'sum(pregnant) AS cases_ccs_pregnant, ' ||
    'sum(lactating) AS cases_ccs_lactating, ' ||
    'sum(pregnant_all) AS cases_ccs_pregnant_all, ' ||
    'sum(lactating_all) AS cases_ccs_lactating_all, ' ||
    'sum(thr_eligible) AS thr_eligible_ccs, ' ||
    'sum(rations_21_plus_distributed) AS thr_rations_21_plus_distributed_ccs '
    'FROM ' || quote_ident(_ccs_record_tablename) || ' ' ||
    'WHERE month = ' || quote_literal(_start_date) || ' AND aggregation_level = 5 GROUP BY awc_id, month) ut ' ||
  'WHERE ut.month = agg_awc.month AND ut.awc_id = agg_awc.awc_id';

    'awc_num_open, ' ||
    'wer_weighed, ' ||
    'wer_eligible, ' ||
    'awc_score, ' ||
    'num_awc_rank_functional, ' ||
    'num_awc_rank_semi, ' ||
