Exam 12: Subqueries and Merge Statements
Exam 1: Overview of Database Concepts108 Questions
Exam 2: Basic Sql Select Statements122 Questions
Exam 3: Table Creation and Management132 Questions
Exam 4: Constraints132 Questions
Exam 5: Data Manipulation and Transaction Control132 Questions
Exam 6: Additional Database Objects132 Questions
Exam 7: User Creation and Management132 Questions
Exam 8: Restricting Rows and Sorting Data132 Questions
Exam 9: Joining Data From Multiple Tables131 Questions
Exam 10: Selected Single Row Functions133 Questions
Exam 11: Group Functions134 Questions
Exam 12: Subqueries and Merge Statements132 Questions
Exam 13: Views133 Questions
Select questions type
A subquery nested in a WHERE clause can only be on the side of the comparison operator. _________________________
(True/False)
4.8/5
(32)
Valid multiple-row operators include ANY, ALL, and ____________________.
(Short Answer)
4.7/5
(42)
Contents of the CUSTOMERS table
-Based upon the contents of the CUSTOMERS table, which of the following would be the most appropriate use of a subquery?

(Multiple Choice)
4.9/5
(42)
Which of the following operators is used with a multiple-row subquery?
(Multiple Choice)
4.8/5
(45)
The following SQL statement contains what type of subquery? SELECT b.title, b.retail, a.category, a.cataverage
FROM books b, (SELECT category, AVG(retail) cataverage
FROM books GROUP BY category) a
(Multiple Choice)
5.0/5
(38)
If a subquery references a column from the outer query, then it is a(n) ____________________ subquery.
(Short Answer)
4.8/5
(32)
If the value of the EXISTS operator is ____________________, then the rows meeting the condition are displayed.
(Short Answer)
4.8/5
(35)
Contents of the BOOKS table
-Based upon the contents of the BOOKS table, which line of the following SQL statement contains an error? 1 SELECT title, pubid, cost, retail
2 FROM books
3 WHERE (pubid, cost)
4 (SELECT pubid, cost)
5 FROM books
6 WHERE pubid = 3);

(Multiple Choice)
4.9/5
(26)
Any type of subquery can be used in the FROM, WHERE, or ____________________ clause of a SELECT statement.
(Short Answer)
4.7/5
(45)
A subquery is required when the condition for the outer query is based upon an unknown.
(True/False)
4.9/5
(27)
A correlated subquery is one in which the inner query is executed first, and then the outer query is executed.
(True/False)
4.8/5
(34)
The operator indicates that a value must be less than the lowest value returned by the subquery to be included in the results. _________________________
(True/False)
4.9/5
(37)
A subquery, except one in the FROM clause, can't have an clause. _________________________
(True/False)
4.8/5
(34)
If a multiple-column subquery is contained in the WHERE or HAVING clause of the outer query, the ____________________ operator must be used.
(Short Answer)
4.9/5
(34)
The operator is valid for multiple-row subqueries. _________________________
(True/False)
4.8/5
(37)
If a subquery is contained in a WHERE or HAVING clause, the subquery must be on the ____________________ side of the comparison operator.
(Short Answer)
4.8/5
(33)
A temporary table that is created when a multiple-column subquery is used in the FROM clause of an outer query is called a(n) ____.
(Multiple Choice)
4.8/5
(35)
A(n) query is also referred to as a parent query. _________________________
(True/False)
4.9/5
(37)
Showing 61 - 80 of 132
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)