Exam 12: Subqueries and Merge Statements

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

False

A subquery is a(n) ____________________ query - one complete query inside another query.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

nested

IN is not a valid operator for a multiple-column subquery.

Free
(True/False)
4.8/5
(26)
Correct Answer:
Verified

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 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? -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)

A subquery must include a(n) ____ clause.

(Multiple Choice)
4.8/5
(41)

Which of the following subqueries returns more than one row of results to the outer query?

(Multiple Choice)
4.7/5
(32)

IN is a valid  multiple-row \underline { \text { multiple-row } } subquery operator. _________________________

(True/False)
4.8/5
(27)

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  quotation marks. \underline {\text { quotation marks. } } _________________________

(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)

The NVL function can be used in a subquery.

(True/False)
4.8/5
(43)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)