nerdexam
Oracle

1Z0-882 · Question #37

Examine the fruit and wine tables: Fruit You execute this query: SELECT fruited, fruitname FROM fruit UNION SELECT id, name, country FROM wine; What is the result?

The correct answer is D. The query falls because the number of columns in the SELECT in the SELECT clauses are not. See the full explanation below for the reasoning.

Question

Examine the fruit and wine tables:

Fruit You execute this query:

SELECT fruited, fruitname FROM fruit UNION SELECT id, name, country FROM wine; What is the result?

Exhibit

1Z0-882 question #37 exhibit

Options

  • AThe query succeeds and returns five columns of data.
  • BThe query succeeds and returns two columns of data.
  • CThe query falls because UNION does not work on tables with different number of columns.
  • DThe query falls because the number of columns in the SELECT in the SELECT clauses are not

How the community answered

(26 responses)
  • A
    19% (5)
  • B
    8% (2)
  • C
    4% (1)
  • D
    69% (18)

Community Discussion

No community discussion yet for this question.

Full 1Z0-882 Practice