QuestionQ82

VerifiedDisplaying Data from Multiple Tables

View the exhibits and review the structures of the PROMOTIONS and SALES tables.

Question Image

Question Image

Evaluate this SQL statement:

Question Image

Which statement is true about the output of the query above?

Explanation

A RIGHT OUTER JOIN retains every row from the right-hand table, PROMOTIONS, and returns matching rows from SALES when they exist. Consequently, promotions are returned whether or not they have resulted in a sale.

Community Discussion

No comments yet. Be the first to start the discussion!