     '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, ' ||

    '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, ' ||

    'WHERE pregnant = 1 OR lactating = 1 ' ||
    'GROUP BY awc_id) ut ' ||
  'WHERE ut.awc_id = agg_awc.awc_id';

  -- Aggregate data from usage table
  EXECUTE 'UPDATE ' || quote_ident(_tablename5) || ' agg_awc SET ' ||
