nerdexam
SAS_Institute

A00-212 · Question #155

Given the SAS data sets EMPLOYEE and NEWEMPLOYEE: EMPLOYEE NEWEMPLOYEE NAME DEPT NAME SALARY ------- -------- --------- ---------- Alan Sales Michelle 50000 Michelle Sales Paresh 60000 A SAS program…

The correct answer is A. Change the equal sign to IN. See the full explanation below for the reasoning.

Question

Given the SAS data sets EMPLOYEE and NEWEMPLOYEE:

EMPLOYEE NEWEMPLOYEE NAME DEPT NAME SALARY ------- -------- --------- ---------- Alan Sales Michelle 50000 Michelle Sales Paresh 60000 A SAS program is submitted and the following is written to the SAS log:

530 proc sql; 531 select dept, name 532 from employee 533 where name = (select name from newemployee where salary > 40000); ERROR: Subquery evaluated to more than one row. 534 quit; What would allow the program to successfully execute without errors?

Options

  • AChange the equal sign to IN.
  • BQualify the column names with the table names.
  • CAdd an observation with a name of Paresh to the EMPLOYEE data set.
  • DReplace line 533 with where employee.name = (select name from newemployee where

How the community answered

(28 responses)
  • A
    75% (21)
  • B
    4% (1)
  • C
    14% (4)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice