- (Topic 4)
View the Exhibit and examine the data in the PROMO_CATEGORY and PROMO_COST columns of the PROMOTIONS table.<>>>>>>>>
Correct Answer:
B
Note: You cannot use column alias in the WHERE clause.
- (Topic 3)
Which two statements are true about WHERE and HAVING clauses? (Choose two)
Correct Answer:
BD
B: WHERE clause cannot be use to restrict groups
WHERE clause cannot be use when there is group functions. D: A HAVING clause can only e used to restrict GROUPS.
Note: HAVING clause to specify which groups are to be displayed and thus further restrict the groups on
the basis of aggregate information. The Oracle server performs the following steps when you use the Having clause
1. rows are grouped
2. the group function is applied to the group
3. the group that match the criteria in the Having clause are displayed.
Incorrect Answers :
A- Where clause cannot be use to restrict groups
C- A HAVING clause can only e used to restrict GROUPS.
E- WHERE clause cannot be use when there is group function, instead HAVING is to be use.
F- There is no constraint to use HAVING clause in a sub queries.
Refer: Introduction to Oracle9i: SQL, Oracle University Student Guide, Aggregating Data using Group Functions, p. 5-20
- (Topic 1)
View the Exhibit and examine the description of SALES and PROMOTIONS tables.
< ><>>>< >
Correct Answer:
BCD
- (Topic 2)
You work as a database administrator at ABC.com. You study the exhibit carefully. Exhibit<>>
Correct Answer:
BC
- (Topic 3)
For which action can you use the TO_DATE function?
Correct Answer:
C