We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10224e8 commit dc9dae9Copy full SHA for dc9dae9
5. RoundOff.sql
@@ -0,0 +1,8 @@
1
+-- ROUND(number, decimals, operation)
2
+
3
4
+-- it will round off to the nearest integer.
5
+select round(avg(POPULATION)) from CITY;
6
7
+-- it will round off to the nearest 2 decimal places
8
+select round(avg(POPULATION),2) from CITY;
0 commit comments