find the table size on IBM netezza sql database from Aginity workbench on win 7

user3601704 picture user3601704 · Nov 5, 2014 · Viewed 15.7k times · Source

I need to find a table size on IBM netezza sql database from Aginity workbench on win 7.

I used this

 SELECT  * FROM _V_TABLE
 where tablename = 'my_table_name'

But, no information about table size.

I right-clicked the table name in Aginity, but, nothing came out.

Any help would be appreciated.

thanks

Answer

Niederee picture Niederee · Nov 6, 2014

Try this query.

select used_bytes/pow(1024,3) as used_gb, *
from _v_table_storage_stat
where tablename = 'my_table_name'