Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 28 Feb 2007 @ 20:40:00 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:   DWellman


Try the following query:

     SEL databasename,tablename
     FROM dbc.columns
     WHERE columnname IN ('art_no','client_cd')
     GROUP BY 1,2
     HAVING COUNT(*) = 2
     ORDER BY 1,2



Ward Analytics Ltd: Information in motion ( www.ward-analytics.com )

  <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