KnowledgeBoat Logo
|

Informatics Practices

What will be returned by the given query?

select round(23456.1234, -2) ;
  1. 23456.00
  2. 23400
  3. 23500
  4. 23456.1200

SQL Queries

3 Likes

Answer

23500

Reason — The query SELECT ROUND(23456.1234, -2); will return 23500. This is because the ROUND() function in SQL rounds the number 23456.1234 to the nearest hundredth position specified by -2, resulting in 23500.

Answered By

3 Likes


Related Questions