KnowledgeBoat Logo

Informatics Practices

What will be returned by the given query ?

SELECT Round(153.669, 2);
  1. 153.6
  2. 153.66
  3. 153.67
  4. 153.7

SQL Queries

1 Like

Answer

153.67

Reason — The ROUND() function in MySQL is used to round a number to a specified number of decimal places. In this query, ROUND(153.669, 2) rounds the number 153.669 to 2 decimal places, resulting in the output 153.67.

Answered By

1 Like


Related Questions