Always ROUND UP to the next full GB?

ReCal

Newcomer
Joined
Jan 23, 2009
Messages
3
Reaction score
0
Points
0
Hi.
How can I always round up from 0.01GB to the next full 1GB?
SELECT node_name, CAST(FLOAT(SUM(reporting_mb)) / 1024 AS DEC(8,2)) FROM occupancy GROUP BY node_name
THX
Regards
Rene
 
SELECT node_name, CEILING((SUM(reporting_mb)) / 1024) AS "GiB" from occupancy group BY node_name
 
Back
Top