(SQL1: Essential course note PDF, p237 and p245 s104s10)
I think the newly created column name should be "EstSum", not "EstPct", because it is the sum of the estimated population of the countries, not a percent (see below).
The code and results are as follows:
proc sql;
select * from sq.globalfull(obs=1);
quit;
proc sql outobs=3;
select distinct countrycode,
estyear1pop
from sq.globalfull;
quit;
proc sql;
select sum(estyear1pop) format comma20.
from (select distinct countrycode,
estyear1pop
from sq.globalfull);
quit;
Thanks for the feedback. We'll get this fixed in our next revision.
Thanks for the feedback. We'll get this fixed in our next revision.
Hi Stacey! Thanks a lot for your attention and your reply! This is the second time I get feedback from you, I am really so happy about this. I learnt a lot from PG1 and PG2 and PG3, MACRO1 and SQL1 training materials, really good and helpful.
All the best!
The materials (for learn SAS as well as the cert. exam preparation) I depend on, refer to, practice many times, and feel most helpful are 1) the "Base SAS 9.4 Procedures Guide" one can find through the SAS Help and Documentation in SAS 9.4 windowing environment and 2) the training materials including pg1, pg2, pg3, macro1, sql1 essentials. Learning these materials is fun and as a learner I really appreciate all this materials 😀😀
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →Follow along as SAS’ Robert Blanchard explains three aspects of autotuning in a deep learning context: globalized search, localized search and an in parallel method using SAS.
Find more tutorials on the SAS Users YouTube channel.