,CAST(SUM(CurrentPerm)/1024**3 as DECIMAL (6,0)) AS ActualSpaceGB
,CAST(MAX(CurrentPerm)*(HASHAMP()+1)/1024**3 as DECIMAL (6,0)) as EffectiveSpaceGB
,EffectiveSpaceGB-ActualSpaceGB AS WasteSpaceGB
,CAST(100*(((MAX(CurrentPerm)*(HASHAMP()+1)/1024**3)-(SUM(CurrentPerm)/1024**3))/(MAX(CurrentPerm)*(HASHAMP()+1)/1024**3)) as DECIMAL (6,0)) AS "WasteSpace%"
,CAST((100-(AVG(CurrentPerm)/MAX(CurrentPerm)*100)) as DECIMAL (6,0)) AS SkewFactor