QuestionQ35

VerifiedRestricting and Sorting Data

The INVOICE table contains a QTY_SOLD column with data type NUMBER and an INVOICE_DATE column with data type DATE.

NLS_DATE_FORMAT is configured as DD-MON-RR.

Which two statements are true about data-type conversions involving these columns in query expressions?

Choose two
Explanation

Oracle implicitly converts character values to NUMBER when they are compared with a NUMBER value. Therefore the character bounds '101' and '110' in a BETWEEN condition, and the character literal '0554982' in an equality condition, are implicitly converted to numeric values. Oracle date conversions that depend on NLS_DATE_FORMAT = DD-MON-RR require a compatible date string; a four-digit year does not conform to the RR year element.

Learn more

Community Discussion

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