Practice for the SAS advance certification exam.
Join conditions are not specified in a PROC SQL join.
Join conditions are not specified in a PROC SQL set operation.
More than two tables are specified in a PROC SQL join.
The keyword ALL is used with the OUTER UNION operator.
Rate this question:
Rate this question:
Rate this question:
proc sql; select a.obs label='Obs', med b.obs label='Obs', duration from groupa as a, groupb as b where a.obs=b.obs;
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 a.*, duration from groupa as a left join groupb as b where a.obs=b.obs;
proc sql; select a.*, duration from groupa as a inner join groupb as b on a.obs=b.obs;
Rate this question:
Rate this question:
The tables being joined must contain the same number of columns.
The tables must be sorted before they are joined.
The columns that are specified in a join condition in the WHERE clause must have the same data type.
The columns that are specified in a join condition in the WHERE clause must have the same name.
Rate this question:
Once defined, an in-line view can be referenced in any PROC SQL query in the current SAS session.
An in-line view can be assigned a table alias but not a permanent name.
In-line views can be combined with tables in PROC SQL joins.
This PROC SQL query contains an in-line view that uses valid syntax: proc sql; select name, numvisits from (select name, sum(checkin) as numvisits from facility as f, members as m where area='POOL' and f.id=m.id group by name) where numvisits<=10 order by 1;
Rate this question:
proc sql; title 'Merged'; select a.g3, z, r from table1 as a full join table2 as b on a.g3 = b.g3 order by 1;
proc sql; title 'Merged'; select a.g3, z, r from table1 as a full join corr table2 as b on a.g3 = b.g3 order by 1;
proc sql; title 'Merged'; select coalesce(a.g3, b.g3) label='G3', z, r from table1 as a full join table2 as b on a.g3 = b.g3 order by 1;
proc sql; title 'Merged'; select g3, z, r from table1 as a full join table2 as b on a.g3 = b.g3 order by 1;
Rate this question:
A maximum of two tables or in-line views, but multiple joins can be chained together.
A maximum of 32 tables or two in-line views.
A maximum of 32 tables, which includes any tables referenced by an in-line view.
A maximum of two tables and 32 columns.
Rate this question:
Table aliases must be used when referencing identical table names from different libraries.
Table aliases can be referenced by using the keyword AS.
Table aliases (or full table names) must be used when referencing a column name that is the same in two or more tables.
Table aliases must be used when using summary functions.
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.