Quiz

Select the best answer for each question. After completing the quiz, check your answers using the answer key in the appendix.
  1. Which PROC SQL query removes duplicate values of MemberType from the query output, so that only the unique values are listed?
    1. proc sql nodup;
         select membertype
            from sasuser.frequentflyers;
    2. proc sql;
         select distinct(membertype) 
                as MemberType
            from sasuser.frequentflyers;
    3. proc sql;
         select unique membertype
            from sasuser.frequentflyers
            group by membertype;
    4. proc sql;
         select distinct membertype
            from sasuser.frequentflyers;
  2. Which of the following causes PROC SQL to list rows that have no data in the Address column?
    1. WHERE address is missing
    2. WHERE address not exists
    3. WHERE address is ...

Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.