Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 07 May 2002 @ 12:12:57 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: SQL to get table name with row counts?
From:   Armin Woworsky

sorry ones more

select (trim (t.databasename)||'.'||trim(t.tablename)) as tablename,
count(*) from dbc.tables t
join dbc.columns c on (t.databasename = c.databasename and t.tablename
= c.tablename)
group by 1
order by 1

cut and past isn't so easy

lg Armin

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020