By admin | August 10, 2009

SAS Certified Adv Programmer 50 Questions (1)

Given the following SAS data sets One and Two:

One

Year Qtr Budget
2001 3 500
2001 4 400
2002 1 700

Two

Year Qtr Sales
2001 4 300
2002 1 600

The following SAS program is submitted:

proc sql;
    select one.*, sales
        from one, two
        where one.year=two.year and
              one.qtr=two.qtr;
quit;

Which of the following reports is generated?

a.

Year Qtr Budget Sales
2001 3 500 300
2002 1 700 600

b.

Year Qtr Budget Sales
2001 4 400 300
2002 1 700 600

c.

Year Qtr Budget Sales
2001 3 500 .
2001 4 400 300
2002 1 700 600

d.

Year Qtr Budget Sales
2001 3 500 300
2001 4 400 300
2002 1 700 300
2001 3 500 600
2001 4 400 600
2002 1 700 600

2 comments | Add One

  1. admin - 08/10/2009 at 9:31 pm

    B

  2. Blaiso - 05/31/2013 at 7:41 pm

    B, double cross product

Leave a Comment

Leave a Reply

Your email address will not be published.