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.
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.
AWSH
2 months agoBissto
4 months, 1 week agoyaya32
11 months, 3 weeks agobenjamin2023
1 year agoXTIMON
1 year, 4 months agoIzzicertificacion
1 year, 5 months agobenjamin2023
1 year ago