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
When a multiple-column subquery is used in the WHERE clause of the outer query, the column names listed on the left side of the comparison operator must be enclosed in double-quotation marks.
Free
(True/False)
4.9/5
(27)
Correct Answer:
False
A subquery is a(n) ____________________ query - one complete query inside another query.
Free
(Short Answer)
4.9/5
(34)
Correct Answer:
nested
IN is not a valid operator for a multiple-column subquery.
Free
(True/False)
4.8/5
(26)
Correct Answer:
False
A subquery can only be nested in the WHERE or HAVING clause of the outer query.
(True/False)
4.8/5
(42)
The following SQL statement contains what type of subqueries? SELECT isbn, title FROM books WHERE pubid =
(SELECT pubid FROM books WHERE title = 'SHORTEST POEMS')
AND retail-cost >
(SELECT AVG(retail-cost) FROM books);
(Multiple Choice)
4.9/5
(37)
The ____________________ operator is used to determine whether a condition is present in a subquery.
(Short Answer)
4.8/5
(30)
The following SQL statement contains which type of subquery? SELECT title, retail, category FROM books
WHERE retail IN (SELECT MAX(retail) FROM books
GROUP BY category);
(Multiple Choice)
4.8/5
(42)
A single-row subquery can return several columns, but only one row, of results to the outer query.
(True/False)
4.8/5
(36)
Which comparison operator allows you to search for NULL values in a subquery?
(Multiple Choice)
4.8/5
(41)
Contents of the BOOKS table
-Based on the contents of the BOOKS table, which of the following SQL statements will display the title of all books published by the publisher of SHORTEST POEMS?

(Multiple Choice)
4.9/5
(35)
If a subquery's result must be compared with a group function, you must nest the inner query in the ____________________ clause of the outer query.
(Short Answer)
4.8/5
(28)
What is the difference between the IN operator and the =ANY operator?
(Essay)
4.9/5
(32)
Which of the following subqueries returns more than one row of results to the outer query?
(Multiple Choice)
4.7/5
(32)
If the result returned from a subquery must be compared to a group function, then the inner query must be nested in the outer query's ____ clause.
(Multiple Choice)
4.9/5
(31)
A subquery must be enclosed in a set of _________________________
(True/False)
4.8/5
(29)
The following SQL statement contains which type of subquery? SELECT title FROM books WHERE EXISTS
(SELECT isbn FROM orderitems WHERE books.isbn = orderitems.isbn);
(Multiple Choice)
4.7/5
(31)
When a multiple-column subquery is used in the outer query's FROM clause, it creates a temporary table, called an inline view, that can be referenced by other clauses of the outer query.
(True/False)
5.0/5
(37)
Showing 1 - 20 of 132
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)