$ 0 0 Here is the solution - locking row for access SELECT DATABASENAME, TABLENAME, SUM(CURRENTPERM)/1024/1024/1024 FROM DBC.TABLESIZE where databasename in (SELECT DISTINCT TRIM(child) AS DB FROM dbc.children A WHERE (parent = TRIM('D1') -- OR TRIM(child) = TRIM('audata00_vha') )) GROUP BY 1, 2 order by 3 desc
Here is the solution -
locking row for access
SELECT DATABASENAME,
TABLENAME,
SUM(CURRENTPERM)/1024/1024/1024
FROM DBC.TABLESIZE
where databasename in (SELECT DISTINCT TRIM(child) AS DB
FROM dbc.children A
WHERE (parent = TRIM('D1')
-- OR TRIM(child) = TRIM('audata00_vha')
))
GROUP BY 1, 2
order by 3 desc