Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 28 Feb 2007 @ 23:32:53 GMT





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




Subj:   Re: Is there any way to find all tables which have two particular column in a database
 
From:   ulrich arndt



how about this?

     select databasename, tablename
     from dbc.columns
     where columnname in ('art_no','client_cd')
     having count(*) = 2
     order by 1,2
     ;

Ulrich





     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 01 Dec 2008