Question: Provide Proc sql code for this problem. The problem is from Orion.employee__donations 3. Subsetting Data Using the ESCAPE Clause Create a report that displays the
Provide Proc sql code for this problem. The problem is from Orion.employee__donations
3. Subsetting Data Using the ESCAPE Clause Create a report that displays the Employee ID, the Recipients, and the number of quarterly contributions for each employee, who contributed to more than one company and who made a contribution in only one or two quarters. Hint: We are not interested in the value of a quarterly contribution, but whether it occurred in a given quarter or not. Use the ESCAPE clause in the WHERE clause to solve this problem. Using the CASE expression might be one way of going about this question. PROC SQL Output Employee ID Recipients No_of_Contribs 120265 Mitleid international 90%, Save the Baby Animals 10% 120663| EarthSalvors 3096, Vox Victimas 70% 3. Subsetting Data Using the ESCAPE Clause Create a report that displays the Employee ID, the Recipients, and the number of quarterly contributions for each employee, who contributed to more than one company and who made a contribution in only one or two quarters. Hint: We are not interested in the value of a quarterly contribution, but whether it occurred in a given quarter or not. Use the ESCAPE clause in the WHERE clause to solve this problem. Using the CASE expression might be one way of going about this question. PROC SQL Output Employee ID Recipients No_of_Contribs 120265 Mitleid international 90%, Save the Baby Animals 10% 120663| EarthSalvors 3096, Vox Victimas 70%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
