nerdexam
Oracle

1Z0-047 · Question #31

View the Exhibit and examine the structure of the LOCATIONS and DEPARTMENTS tables. Which SET operator should be used in the blank space in the following SQL statement to display the cities that…

The correct answer is C. INTERSECT. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the LOCATIONS and DEPARTMENTS tables. Which SET operator should be used in the blank space in the following SQL statement to display the cities that have departments located in them? SELECT location_id, city FROM locations SELECT location_id, city FROM locations JOIN departments USING(location_id);

Options

  • AUNION
  • BMINUS
  • CINTERSECT
  • DUNIONALL

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    78% (29)
  • D
    14% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice