Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 07 May 2002 @ 11:50:52 GMT


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


Subj:   SQL to get table name with row counts?
 
From:   Rohit Revo

I want the table list with the rows counts in it. That is I want to do something like this...

select tname, (select count(*) from tname) rows from tab;

The output should be

TNAME      ROWS
------   --------
MyT1       12
MyT2       42
MyT3       9

Thanks

ROHIT REVO



     
  <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: 15 Jun 2023