Professional Documents
Culture Documents
State Finished
Marks 14.00/15.00
Question 1
Incorrect
Select one:
a. True
b. False
Question 2
Correct
Select one:
a. False
b. True
Correct
Select one:
a. Noncorrelated Subquery
b. Correlated Subquery
Question 4
Correct
Select one:
a. SELECT * FROM weather WHERE temperature > (SELECT city FROM weather WHERE city = ‘Paris’)
b. SELECT * FROM weather WHERE temperature > (SELECT * FROM weather WHERE city = ‘Paris’)
d. SELECT * FROM weather WHERE temperature > (SELECT temperature FROM weather WHERE city = ‘Paris’
The correct answer is: SELECT * FROM weather WHERE temperature > (SELECT temperature FROM weather WHERE
city = ‘Paris’
Question 5
Correct
If a table appears only in a subquery and not in the outer query, then columns from that table can be included in the
output.
Select one:
a. True
b. False
Correct
In case of correlated subquery the outer query is executed once. The subquery is executed ............. for every row in the
outer query.
Select one:
a. Once
b. Twice
c. Thrice
d. Both A & B
Question 7
Correct
Select one:
a. FROM
b. HAVING
d. WHERE
Question 8
Correct
The subquery is known as a ................. subquery because the subquery is related to the outer SQL statement.
Select one:
a. Corelational
b. Correlated
c. Relational
d. Related
Correct
Select one:
Question 10
Correct
Select one:
b. An independent query that uses the correlation name of another independent query.
The correct answer is: A sub-query that uses the correlation name of an outer query
Question 11
Correct
Select one:
The correct answer is: The WHERE clause only in the SELECT statement
Question 12
Correct
Select one:
a. The user can execute the main query and then, if wanted, execute the sub-query
The correct answer is: They execute before the main query executes.
Question 13
Correct
Select one:
a. UNION
b. ALL OF THESE
c. INTERSECTION
Question 14
Correct
Select one:
a. Outer query and inner query can get data from different tables
c. Outer query and inner query must get data from the same table
The correct answer is: Outer query and inner query can get data from different tables
Question 15
Correct
Select one:
c. There is no limit on the number of subquery levels in the WHERE clause of a SELECT statement
d. Both A and B
Previous Activity
Jump to...
Next Activity