QuestionQ8

VerifiedRestricting and sorting data

Examine the ORDER_ITEMS table:

Question Image

Which two queries return rows for which QUANTITY is a multiple of ten?

Choose two
Explanation

MOD(quantity, 10) = 0 identifies values with no remainder after division by 10. TRUNC(quantity, -1) truncates the units digit; a value equals that result only when its units digit is zero. Oracle documents that MOD returns the remainder of division and that a negative second argument to numeric TRUNC truncates digits to the left of the decimal point.

Learn more

Community Discussion

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