Class - 12 CBSE Computer Science Important Output Questions 2025
Find the output of the following SQL Query :
SELECT MOD(ROUND (13.9, 0), 3);
SQL Queries
4 Likes
Answer
+------------------------+
| MOD(ROUND(13.9, 0), 3) |
+------------------------+
| 2 |
+------------------------+
Working
In the above query, 13.9 is first rounded to the nearest whole number (0 decimal places), resulting in 14 using the ROUND
function. Then, the MOD
function computes the remainder of 14 divided by 3, resulting in 2. Therefore, the output of the query is 2.
Answered By
1 Like