A00-212 Exam QuestionsBrowse all questions from this exam

A00-212 Exam - Question 11


Given the SAS data sets shown on the left, the SAS program on the right is submitted.

What will be the result when this program is executed?

Show Answer
Correct Answer: AC

The correct answer is determined by interpreting the SQL code and its execution. The code performs a left join between the QTR1_SALES and CURRENT_EMPS tables based on the RepID. The COALESCE function ensures that even if there is no matching RepID in the CURRENT_EMPS table, the RepID from QTR1_SALES will be used. The result is ordered by the Sales in descending order. Therefore, RepIDs that exist in QTR1_SALES but not in CURRENT_EMPS will be included in the result, with their corresponding sales values and a missing name value. Option A correctly reflects this behavior, showing entries for all RepIDs in QTR1_SALES with their sales, correctly ordered by sales in descending order.

Discussion

1 comment
Sign in to comment
numanigerioOption: A
Apr 2, 2019

A. Option A It could not be the other, it has 400 when it comes from the right...when it is a left join