Example: Using AllSpaceV - Advanced SQL Engine - Teradata Database

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-10-15
dita:mapPath
yoz1556235523563.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantage™

The following SELECT statement displays how the space currently used by the data table named Department is distributed on each AMP:

SELECT DatabaseName,TableName,AMP,CurrentPerm FROM DBC.AllSpaceV
WHERE TableName=’Department’ ORDER BY 1,2,3 ;

Result:

DatabaseName    TableName       AMP        CurrentPerm
------------    ----------      ----       ------------  
Test            DEPARTMENT      1-0        1,024
Test            DEPARTMENT      1-1          512
Test            DEPARTMENT      1-2        1,024
Test            DEPARTMENT      1-3          512
PERSONNEL       department      1-0        2,048
PERSONNEL       department      1-1        1,536
PERSONNEL       department      1-2        1,536
PERSONNEL       department      1-3        1,536
User1           department      1-0        2,048
User1           department      1-1        1,536
User1           department      1-2        1,536
User1           department      1-3        1,536