PP02: Patient distribution by plan type

Meaningful text.

Input:
<None>

Sample query run:
The following is a sample run of the query. The input parameters are highlighted in blue
select t.plan_source_value, t.pat_cnt as num_patients,
       100.00*t.pat_cnt/ (sum(t.pat_cnt) over()) perc_of_total_count  
from (
  select p.plan_source_value,
         count(1) as pat_cnt
  from payer_plan_period p
  group by p.plan_source_value
) t
order by t.plan_source_value
;

Output:
Output field list:
 Field  Description
plan_source_value The source code for the person's coverage plan as it appears in the source data.

Sample output record:
 Field  Description
plan_source_value  
Comments