Exam 12: Subqueries and Merge Statements

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

A subquery nested in a WHERE clause can only be on the  left \underline {\text { left }} 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 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? -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 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); -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)

Valid single-row operators include =, >, <, >=, <=.

(True/False)
4.9/5
(36)

The <ANY\underline {\mathrm{< ANY} } 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)

The <> operator is referred to as a(n) ____ operator.

(Multiple Choice)
4.8/5
(34)

A subquery, except one in the FROM clause, can't have an  ORDER BY \underline { \text { ORDER BY } } 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  IN \underline {\text { IN } } 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)  outer \underline {\text { outer } } query is also referred to as a parent query. _________________________

(True/False)
4.9/5
(37)
Showing 61 - 80 of 132
close modal

Filters

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