exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 169 discussion

Actual exam question from Oracle's 1z0-071
Question #: 169
Topic #: 1
[All 1z0-071 Questions]

Examine the ORDER_ITEMS table:



Which two queries return rows where QUANTITY is a multiple of ten? (Choose two.)

  • A. SELECT * FROM order_items WHERE quantity / 10 - TRUNC(quantity
  • B. SELECT * FROM order_items WHERE MOD(quantity, 10) - 0;
  • C. SELECT * FROM order_items WHERE FLOOR(quantity / 10) = TRUNC(quantity / 10);
  • D. SELECT * FROM order_items WHERE quantity = TRUNC(quantity, -1);
  • E. SELECT * FROM order_items WHERE quantity = ROUND(quantity, 1);
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AWSH
2 months ago
D: returns 0 if the Quantity is less than 10, not just some tens.
upvoted 1 times
...
Bissto
4 months, 1 week ago
Selected Answer: BC
B. SELECT * FROM order_items WHERE MOD(quantity, 10) = 0; This is correct. The MOD function returns the remainder of a division operation. If MOD(quantity, 10) equals 0, it means that quantity is evenly divisible by 10, i.e., quantity is a multiple of 10. C. SELECT * FROM order_items WHERE FLOOR(quantity / 10) = TRUNC(quantity / 10); This is correct. FLOOR(quantity / 10) and TRUNC(quantity / 10) will both give the same result when quantity is a multiple of 10, because the division of a multiple of 10 by 10 will always be an integer. This ensures that quantity is a multiple of 10.
upvoted 1 times
...
yaya32
11 months, 3 weeks ago
Selected Answer: D
D is correct for sure, I think that B has a typo.
upvoted 1 times
...
benjamin2023
1 year ago
B has a typo , should be = 0
upvoted 2 times
...
XTIMON
1 year, 4 months ago
Selected Answer: BD
BD is correct
upvoted 2 times
...
Izzicertificacion
1 year, 5 months ago
Selected Answer: CD
C, D IS CORRECT
upvoted 1 times
benjamin2023
1 year ago
C is wrong, it just returns all rows.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago