QuestionQ185

VerifiedUsing Conversion Functions and Conditional Expressions

Refer to the exhibit and review the structure and data in the INVOICE table.

Question Image

Which two statements are correct about data type conversion in expressions used in queries?

Choose two
Explanation

Oracle implicitly converts a character value to DATE when it is compared with a DATE column, subject to the session’s date-format rules; 15-february-2008 can be matched to a DD-MON-RR-style format through Oracle’s alternative date-format matching. When a NUMBER column is compared with character numeric literals, Oracle implicitly converts those literals to NUMBER, including the bounds of a BETWEEN condition. Oracle documents that comparisons between character and numeric values convert the character value to NUMBER, and that date-string conversion uses date-format matching rules.

Learn more

Community Discussion

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