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