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

Size of table with partial data (active records) - response (2) by Rajgopal.v2

$
0
0
Query to find Row Size:

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

--- X

SELECT COUNT(*) FROM TABLE; Y

Here is u r desired result X*Y

By using row size and table size you will able  to calculate the size of partial records in a table. Its not 100%
By using row size and table size you will able to calculate the size of partial records in a table.
Below are the steps:

  1. Find total number of rows in table… assume as X
  2. Find size of the row … assume as Y

Then total size of rows is X*Y
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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