nerdexam
Oracle

1Z0-082 · Question #114

View the Exhibits and examine the structure of the COSTS and PROMOTIONS tables. You want to display PROD_IDS whose promotion cost is less than the highest cost PROD_ID in a promotion time interval…

The correct answer is D. It executes successfully and gives the required result. See the full explanation below for the reasoning.

SQL and PL/SQL

Question

View the Exhibits and examine the structure of the COSTS and PROMOTIONS tables. You want to display PROD_IDS whose promotion cost is less than the highest cost PROD_ID in a promotion time interval. Examine this SQL statement:

Exhibit 1. Exhibit 2. What will be the result?

Exhibits

1Z0-082 question #114 exhibit 1
1Z0-082 question #114 exhibit 2
1Z0-082 question #114 exhibit 3

Options

  • AIt gives an error because the ALL keyword is not valid
  • BIt gives an error because the GROUP BY clause is not valid
  • CIt executes successfully but does not give the required result
  • DIt executes successfully and gives the required result

How the community answered

(54 responses)
  • A
    13% (7)
  • B
    4% (2)
  • C
    7% (4)
  • D
    76% (41)

Topics

#ALL keyword#GROUP BY#subqueries#set comparison

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice