QuestionQ34

VerifiedUsing Conversion Functions and Conditional Expressions

Refer to the exhibit and review the data in the PROMO_NAME and PROMO_END_DATE columns of the promotions table, along with the required output format.

Question Image

Which two queries produce the correct result?

Question Image

Choose two
Explanation

Oracle pads the DAY and MONTH datetime format elements with blanks by default. TRIM removes those blanks in option C, while the FM fill-mode modifier in option D suppresses blank padding and the leading zero in the day number. Both therefore produce values such as Saturday, June 19, 1999; FX controls exact format matching and does not provide the required no-padding output behavior.

Learn more

Community Discussion

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