PROC SQL;
create table summary_ead_&p_yymmdd as
select portfolio, product, ead,
sum(ccf*rel_cnt)/sum(rel_cnt) as dcwccf
avg(ccf) as dawccf
count(*) as cnt
from acct_list_final_&P_yymmdd
where ead in ('PHI','ALP')
group by portfolio, product, ead,
quit;
cnt= count(*) - no of rows in dataset
but there is a clause 'where ead in ('PHI', 'ALP')'
so does count(*) include only those fulfilling where ead in ('PHI', 'ALP') or
all rows in dataset acct_list_final_&P_yymmdd regardless of where statement?
... View more