Pregunta 1
Pregunta
Which of the these ORDER BY clauses will display the results ordered by decreasing Salary and then by increasing Name?
Respuesta
-
order by Salary desc, Name
-
order by descending Salary, Name
-
order by desc Salary, Name
-
order by desc Salary, ascending Name
Pregunta 2
Pregunta
You cannot use SAS formats and labels to customize PROC SQL output
Pregunta 3
Pregunta
What column modifier is used to alter the appearance of the values in that column?
Respuesta
-
FORMAT=
-
LABEL=
-
LABELX=
-
INFORMAT=
Pregunta 4
Pregunta
Which of the ff. is not true regarding PROC SQL?
Respuesta
-
PROC SQL is terminated with a RUN statement
-
Each statement is processed individually.
-
The PROC SQL statement does not need to be repeated with each query.
-
No PROC PRINT step is needed to view query results.
Pregunta 5
Pregunta
To eliminate duplicate rows in query results, which keyword should be used?
Respuesta
-
DISTINCT
-
VALIDATE
-
SINGLE
-
NODUP
Pregunta 6
Pregunta
The ALL keyword is true only if the comparison is true for all returned values
Pregunta 7
Pregunta
SQL uses set operators to combine tables horizontally
Pregunta 8
Pregunta
SQL uses joins to combine tables vertically
Pregunta 9
Pregunta
Full joins include all rows from both tables, even if there are no matching rows in either table
Pregunta 10
Pregunta
To familiarize yourself with the columns in a table, which statement should be used:
Respuesta
-
DESCRIBE
-
PROPERTY
-
CONTENT
-
FEATURES
Pregunta 11
Pregunta
Inner joins enables a maximum of 256 tables to be joined at the same time.
Pregunta 12
Pregunta
SQL subqueries can return calues to be used in an outer query's FROM clause
Pregunta 13
Pregunta
Which keyword is used to check the SELECT statement syntax?
Respuesta
-
VALIDATE
-
NOERROR
-
CHECK
-
DETERMINE
Pregunta 14
Pregunta
A type of joins that returns only the matching rows
Respuesta
-
INNER JOIN
-
OUTER JOIN
-
LEFT JOIN
-
RIGHT JOIN
Pregunta 15
Pregunta
A subquery can return several rows of data but must only return values from a single column
Pregunta 16
Pregunta
Given the following SELECT statement, describe the incorrect syntax********************************************************SELECT a,b,c FROM tblx ORDER BY b WHERE tblx.a > 10;
Respuesta
-
arrangement of clauses
-
missing comma
-
missing semi-colon
-
none of the above
Pregunta 17
Pregunta
It is created by placing a query expression in a FROM clause where a table name would normally be used
Respuesta
-
IN LINE VIEW
-
subquery
-
virtual table
-
nested query
Pregunta 18
Pregunta
Correlated subqueries can be evaluated independently
Pregunta 19
Pregunta
If a summary function specifies only one column name, the statistic is calculated down the columb (across rows)
Pregunta 20
Pregunta
In a correlated subquery, the inner query provides information so that the subquery resolves successfully
Pregunta 21
Pregunta
A condition that will evaluate to true if the subquery returns no data
Respuesta
-
NOT EXIST
-
NOT IN
-
IN
-
EXIST
Pregunta 22
Pregunta
When a SELECT list contains both a column created by a summary function and a column that is not summarized, by default, the summarized data is appended to each row of the original data table (remerged) in order to produce the output.
Pregunta 23
Pregunta
The COALESCE function returns the value of the first missing argument
Pregunta 24
Pregunta
If the summary function specifies more than one column, the statistic is calculated for the row (using values from the listed columns)
Pregunta 25
Pregunta
The COUNT function returns the number of columns returned by a query
Pregunta 26
Pregunta
If you specify the ANY keyword before a subquery, the comparison is true if it is false for any of the values that the subquery returns
Pregunta 27
Pregunta
Views often save space, because a view is usually quite small compared with the data that it accesses
Pregunta 28
Pregunta
To search for actual percent or underscore characters in your text using the LIKE operator, you must use an:
Respuesta
-
ESCAPE CLAISE
-
FREE CLAUSE
-
LIKE CLAUSE
-
EXIT CLAUSE
Pregunta 29
Pregunta
SQL subqueries can return values to be used in an outer query's FROM clause
Pregunta 30
Pregunta
What column modifier is used to alter the appearance of the values in that column?
Respuesta
-
FORMAT=
-
LABELX=
-
LABEL=
-
INFORMAT=
Pregunta 31
Pregunta
Find the incorrect syntax on the ff. select statement:**********************proc sql; SELECT Employee_ID, Employee_Gender, Salary, from orion.Employee_Payroll where Employee_Gender='F' order by Salary desc; quit;
Respuesta
-
exceeds use of comma
-
missing semi-colon
-
missing quote
-
missing comma
Pregunta 32
Pregunta
Which of the following is not a feature of SELECT statement
Pregunta 33
Pregunta
How many tables can be combines using a single inner join?
Pregunta 34
Pregunta
The HAVING clause is processed before the GROUP BY clause and determines which groups will be displayed
Pregunta 35
Pregunta
Which of the follwing statements is true when processing an inner join in PROC SQL
Respuesta
-
Builds the cartesian product of all tables listed and applies the WHERE clause to limit the rows returned
-
applies the WHERE clause to limit the rows returned then build the Cartesian product of all the tables listed and
-
builds the Cartesian product of all the tables listed and
display the results
-
no need to build the Cartesian product of all the tables listed and
applies the WHERE clause to limit the rows returned
Pregunta 36
Pregunta
Outer joins can only be performed on two tables at a time
Pregunta 37
Pregunta
Which of the following is not true regarding subqueries
Respuesta
-
Can return single row with multiple columns
-
return values to be used in the outer query’s
WHERE or HAVING clause
-
can return single or multiple values
-
must return only a single column.
Pregunta 38
Pregunta
A query corresponds to a single SELECT statement within a DATA step
Pregunta 39
Pregunta
The IN CLAUSE specifies the criteria in outer joins
Pregunta 40
Pregunta
To create and populate a table with the rows from an SQL query, which of the following statement should be used:
Respuesta
-
CREATE TABLE
-
CREATE QUERY
-
CREATE VIEW
-
CREATE POPULATE
Pregunta 41
Pregunta
The EQUAL operator does not accept any expression that resolves to more than a single value
Pregunta 42
Pregunta
The WHERE clause is processed before a GROUP BY clause and determines which individual rows are available for grouping
Pregunta 43
Pregunta
Which of the following WHERE clauses correctly selects rows with a Job_Code value that begins with a underscore?
Respuesta
-
where Job_Code like '/_%' escape '/'
-
where Job_Code contains '_%'
-
where Job_Code like '%_' exit '/_'
-
where Job_Code like '_%'
Pregunta 44
Pregunta
Which of these DATA step statements is used to combine tables horizontally?
Pregunta 45
Pregunta
In an ORDER BY clause, order the query results by specifying the following except for:
Respuesta
-
a combination of any of the above, with individual items separated by semi-colon
-
an expression
-
a column name or a number representing the position of an item in the SELECT list
-
any column name from any table in the FROM clause, even if the column is not in the SELECT list
Pregunta 46
Pregunta
Correlated subqueries use very few resources and are inexpensive to execute
Pregunta 47
Pregunta
When using an askterisk for the select list, you can specify the FEEDBACK option to write the expanded SELECT statement to the SAS log
Pregunta 48
Pregunta
A subquery can return severa rows of data but must only return values from a single column
Pregunta 49
Pregunta
Left joins include all rows from the second table, even if there are no matching rows in the first table
Pregunta 50
Pregunta
What column modifier is used to alter the appearance of the values in that column?
Respuesta
-
FORMAT=
-
LABEL=
-
LABELX=
-
INFORMAT=