PROC SQL part -3 Aggregate functions, Group by and other related details
Вставка
- Опубліковано 19 вер 2024
- In this presentation I will discuss concept of aggregate functions, group by, remerging summary statistics. I will also discuss where vs having clause and also how to apply group by and aggregate functions on case when statements. For any queries, please contact us at smarttech089@gmail.com
Thank you very much for beign a fantastic teacher. Greetings from Colombia
Sir your classes are really helpful for beginning learner...
Again very detailed and nice explained cleared allmy dobts :)
Thank you sir
Very well explained
When calculated keyword has to be used?
if you are creating new variable and want to use in where clause then you need to use calculated. This is because how SQL is executed behind the scenes is it starts from "from" clause then where clause and then it goes to select. So where clause does not know about new variables in select. So calculated keyword calculated helps here.
@@kiranvenna thankful
For the last example, query can also be written as below:
proc sql;
select sex, count(age) from sashelp.class
group by sex, age
having age in (11,12,13,14,15);
quit;
very well explained