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?
A. It gives an error because the ALL keyword is not valid
B. It gives an error because the GROUP BY clause is not valid
C. It executes successfully but does not give the required result
D. It executes successfully and gives the required result
C
ANY would mean anything less than the highest…
< ALL means less than the LOWEST number.
Shouldn't is be < ANY to exclude only the most expensive item?