October 2019
Intermediate to advanced
430 pages
19h 4m
English
proc sql; /*1*/ select catx(" ",'Total Paid to All',JobTitle,'Staff'), /*2*/ sum(Salary) format=dollar14., /*3*/ count(*) as TotalCount format=comma16. /*4* from certadv.salesstaff /*5*/ group by JobTitle; /*6*/ quit;
| 1 | The SQL procedure retrieves data from tables or views to generate a report. |
| 2 | The SELECT statement uses the CATX
function to return a character string that combines 'Total
Paid to All', the value of JobTitle, and 'Staff'. For example, for rows where JobTitle is Sales Rep. I, the concatenated string is ... |
Read now
Unlock full access