SQL Functions & CASE · Question 7 · Easy

What does this query return?

SELECT ROUND(72.46, 1);
  1. 72.4
  2. 72.46
  3. 73
  4. 72.5
Answer and explanation

Answer: D. 72.5

Explanation: ROUND(x, 1) keeps one digit after the decimal point. The next digit of 72.46 is 6, so the 4 is rounded up to 5.

Previous: Which standard SQL function converts a value from one data type to another… · Next: Table Student: roll | name | marks 1 | Aarav | 82 2 | Diya | 67 3 | Kabir | 45…

Practise sql functions & case

Try a fresh set of sql functions & case questions with an explanation after every answer, free and without signing up: SQL Functions & CASE practice. Or sit a full placement mock test.

More sql functions & case questions

More sql practice

UNION, INTERSECT & EXCEPT · Tables, Keys & Constraints · DML & Transactions · SELECT, WHERE & ORDER BY · SQL Joins · Aggregates & GROUP BY · Subqueries & CTEs · Window Functions

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge