Oracle
1Z0-061 · Question #174
View the Exhibit and examine the structure of the PROMOTIONS table. Which SQL statements are valid? (Choose all that apply.)
The correct answer is A. SELECT promo_id. DECODE(NVL(promo_cost.O).promo_cost * 0.25. 100) "Discount" FROM B. SELECT promo id. DECODE(promo_cost. 10000. Note: there are some syntax issues in this question.
Using Conversion Functions and Conditional Expressions
Question
View the Exhibit and examine the structure of the PROMOTIONS table. Which SQL statements are valid? (Choose all that apply.)
Exhibit
Options
- ASELECT promo_id. DECODE(NVL(promo_cost.O).promo_cost * 0.25. 100) "Discount" FROM
- BSELECT promo id. DECODE(promo_cost. 10000.
- CSELECT promo_id. DECODE(NULLIF(promo_cost. 10000). NULL. promo_cost*.25, *N/A')
- DSELECT promo_id. DECODE(promo_cost. >10000. 'High'. <10000. 'Low') "Range"FROM
How the community answered
(37 responses)- A84% (31)
- C11% (4)
- D5% (2)
Explanation
Note: there are some syntax issues in this question.
Topics
#DECODE#NVL#NULLIF#conditional expression syntax
Community Discussion
No community discussion yet for this question.
