QuestionQ93

VerifiedManipulating Data

Examine the description of the PRODUCTS table:

Question Image

Which three queries contain valid expressions?

Choose three
Explanation

Oracle permits arithmetic with numeric values and with values that can be implicitly converted to numeric types. Subtracting one DATE from another returns a number of days, so that result can be multiplied by 2. A VARCHAR2 value can be implicitly converted for numeric addition when its contents are numeric. DATE values cannot be multiplied directly, and a select-list alias or other undefined identifier cannot be used as a column reference within another expression in the same select list.

Learn more

Community Discussion

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