CEIL/de
From SQLZoo
| CEIL(f) | ||
|---|---|---|
| DBMS | OK | Alternative |
| Ingres | Ja | |
| MySQL | Ja | |
| Oracle | Ja | |
| PostgreSQL | Ja | |
| SQL Server | Nein | FLOOR(-f) |
CEIL
CEIL(f) ermittelt die Ganzzahl (Integer), die gleich oder die nächstgrößere Zahl zu f ist. CEIL rundet immer auf.
CEIL(2.7) -> 3 CEIL(-2.7) -> -2
In diesem Beispiel wird die Bevölkerungszahl (Population) in Millionen berechnet.
SELECT population/1000000 AS a,
FLOOR(population/1000000) AS b
FROM bbc
SELECT population/1000000 AS a,
CEIL(population/1000000) AS b
FROM bbc
Siehe auch
| Language: | [[:{{#invoke:String|sub|CEIL/de
|1
|Expression error: Unrecognised punctuation character "{".
}}|English]] |
|---|