Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Size of table with partial data (active records) - response (3) by TD_Raj

$
0
0
SELECT
databasename,
tablename,
SUM(columnlength) ROWSIZE,
COUNT(*) columncount
FROM    
dbc.COLUMNS
WHERE
databasename LIKE '%XXX%' AND TABLENAME='YYY'
GROUP  BY databasename,tablename;

 
This method is wrong as it will not give proper rowsize for several datatypes like timestamp, varchar etc.

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>