Exam 12: Subqueries and Merge Statements

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

Multiple-row subqueries are nested queries that can return more than one row of results to the parent query.

(True/False)
4.8/5
(29)

The results of a subquery are passed back as input to the ____ query.

(Multiple Choice)
4.8/5
(36)

A(n) correlated subquery references one or more columns  FROM \underline { \text { FROM } } the outer query. _________________________

(True/False)
4.8/5
(38)

Which operators can be combined with other comparison operators to treat the results of a subquery as a set of values, rather than as individual values?

(Multiple Choice)
4.9/5
(38)

A subquery nested in a SELECT clause cannot contain an ORDER BY clause.

(True/False)
4.8/5
(32)

Which of the following must be used to separate a subquery from the outer query?

(Multiple Choice)
4.7/5
(37)

Contents of the BOOKS table Contents of the BOOKS table    -Based on the contents of the BOOKS table, which line in the following SQL statement contains an error? 1 SELECT title 2 FROM books 3 WHERE pubid EXISTS IN 4 (SELECT pubid 5 FROM books 6 WHERE retail > 41.95); -Based on the contents of the BOOKS table, which line in the following SQL statement contains an error? 1 SELECT title 2 FROM books 3 WHERE pubid EXISTS IN 4 (SELECT pubid 5 FROM books 6 WHERE retail > 41.95);

(Multiple Choice)
4.9/5
(33)

A(n) ____ subquery is one that can return several rows of results.

(Multiple Choice)
4.9/5
(37)

In Oracle11g, subqueries in a WHERE clause can be nested to a depth of 2\underline { 2 } . _________________________

(True/False)
4.9/5
(35)

The  IN \underline {\text { IN } } operator can be used with single-row, multiple-row, or multiple-column subqueries. _________________________

(True/False)
4.7/5
(33)

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

(True/False)
4.9/5
(39)

Which operator will instruct Oracle11g to list all records with a value that is more than the highest value returned by the subquery?

(Multiple Choice)
4.9/5
(35)

Contents of the BOOKS table Contents of the BOOKS table    -Based on the contents of the BOOKS table, which line of the following SQL statement contains an error? 1 SELECT isbn, title 2 FROM books 3 WHERE pubid = 4 (SELECT pubid 5 FROM books 6 WHERE title = 'SHORTEST POEMS') 7 AND retail-cost > 8 (SELECT AVG(retail-cost) 9 FROM books); -Based on the contents of the BOOKS table, which line of the following SQL statement contains an error? 1 SELECT isbn, title 2 FROM books 3 WHERE pubid = 4 (SELECT pubid 5 FROM books 6 WHERE title = 'SHORTEST POEMS') 7 AND retail-cost > 8 (SELECT AVG(retail-cost) 9 FROM books);

(Multiple Choice)
4.9/5
(31)

The outer query receives its input from the ____.

(Multiple Choice)
4.9/5
(40)

The equal sign, =, is a valid single-row operator.

(True/False)
4.9/5
(36)

The <ALL operator indicates that for a value to be included in the results, it must be less than the lowest value returned by the subquery.

(True/False)
4.7/5
(31)

A subquery, except one in the FROM clause, cannot contain a(n) ____ clause.

(Multiple Choice)
4.8/5
(43)

The  EXISTED \underline { \text { EXISTED } } operator is used to determine whether a condition is present in a subquery. _________________________

(True/False)
4.9/5
(38)

A multiple-column subquery nested in the  SELECT \underline {\text { SELECT } } clause of the outer query is known as an inline view. _________________________

(True/False)
4.7/5
(36)

A single-row subquery can be nested in the SELECT clause of the outer function.

(True/False)
4.8/5
(31)
Showing 101 - 120 of 132
close modal

Filters

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