Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 29 Mar 2011 @ 20:29:42 GMT


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


Subj:   Re: How to list a common column amount tables
 
From:   Fenwick, Ruth

Presuming you want just tables:

     SEL DATABASENAME, TABLENAME
     FROM DBC.COLUMNS
     WHERE COLUMNNAME = 'BRCH_ID'
     AND COLUMNFORMAT IS NOT NULL
     ORDER BY 1,2;

If you want all objects (tables, views indexes)

     SEL DATABASENAME, TABLENAME FROM
     DBC.COLUMNS WHERE COLUMNNAME = 'BRCH_ID'
     ORDER BY 1,2;


     
  <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