|
Archives of the TeradataForumMessage Posted: Tue, 23 Feb 2010 @ 15:18:34 GMT
Hi Paul, Try... 1 - what the allocated size is. SEL DatabaseName, SUM(MaxPerm) FROM DBC.DiskSpace WHERE DatabaseName = Playpen Database GROUP BY 1; 2 - the unused / used portion of the allocation SEL TRIM(DatabaseName) AS DatabaseName, SUM(MaxPerm) AS MaxPerm, SUM(CurrentPerm) AS CurPerm, SUM(CurrentPerm)/SUM(MaxPerm) AS PctUsed, (SUM(MaxPerm)-SUM(CurrentPerm))/SUM(MaxPerm) AS PctFree FROM DBC.DiskSpace WHERE DatabaseName = Playpen Database GROUP BY 1 ORDER BY 1 HAVING SUM(MaxPerm) > 0; Best regards, Wale
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||