Practice for the SAS advance certification exam
Column names in the result set are determined by the first table.
To be overlaid, columns must be of the same data type.
To be overlaid, columns must have the same name.
By default, only unique rows are displayed in the result set.
Rate this question:
EXCEPT
INTERSECT
UNION
OUTER UNION
Rate this question:
proc sql; select * from summer intersect all select * from winter;
proc sql; select * from summer outer union select * from winter;
proc sql; select * from summer union corr select * from winter;
proc sql; select * from summer union select * from winter;
Rate this question:
proc sql; select * from groupa outer union select * from groupb;
proc sql; select * from groupa as a outer union corr select * from groupb as b;
proc sql; select coalesce(a.obs, b.obs) label='Obs', med, duration from groupa as a full join groupb as b on a.obs=b.obs;
proc sql; select * from groupa as a intersect select * from groupb as b;
Rate this question:
It cannot be used with the keyword ALL.
It overlays columns by name, not by position.
When used in EXCEPT, INTERSECT, and UNION set operations, it removes any columns not found in both tables.
When used in OUTER UNION set operations, it causes same-named columns to be overlaid.
Rate this question:
proc sql; select name, price from pets except all select * from dogs;
proc sql; select name, price from pets except select * from dogs;
proc sql; select name, price from pets except corr all select * from dogs;
proc sql; select * from dogs except corr select name, price from pets;
Rate this question:
proc sql; select fname, lname from prog1 intersect select fname, lname from prog2;
proc sql; select fname, lname from prog1 except all select fname, lname from prog2;
proc sql; select * from prog2 intersect corr select * from prog1;
proc sql; select * from prog2 union select * from prog1;
Rate this question:
proc sql; select fname, lname from prog1 intersect select fname, lname from prog2;
proc sql; select fname, lname from prog1 outer union corr select fname, lname from prog2;
roc sql; select fname, lname from prog1 union select fname, lname from prog2;
proc sql; select fname, lname from prog1 except corr select fname, lname from prog2;
Rate this question:
proc sql; select fname, lname from prog1 union select fname, lname from prog2;
proc sql; select fname, lname from prog1 except corr select fname, lname from prog2;
proc sql; select fname, lname from prog1 intersect all select fname, lname from prog2;
proc sql; select fname, lname from prog1 union corr select fname, lname from prog2;
Rate this question:
proc sql; select fname, lname from prog1 outer union corr select fname, lname from prog2 order by lname;
proc sql; select fname, lname from prog1 union select fname, lname from prog2 order by lname;
proc sql; select fname, lname from prog2 outer union select fname, lname from prog1 order by lname;
proc sql; select fname, lname from prog2 union corr select fname, lname from prog1 order by lname;
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.