Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 27 Dec 2003 @ 20:23:52 GMT


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


Subj:   Re: Dynamic SQL in Tera data
 
From:   Edelsberg, Philip L

You can generate the needed SQL then run it with BTEQ or Teradata SQL Assistant (Queryman) You can get a list of columns from dbc.columns

TRIM may be needed.

Fill in the proper dbname

You'd need to code your SQL something like this; Then run the generated SQL.

Select 'SELECT count (*) from abc where abc.',  ColumnName, 'IS NULL;'
from dbc.columns
where databasename = 'dbname' and
tablename = 'abc'
order by ColumnName

Thanks,

Phil Edelsberg, CCP, PMP.
Teradata Certified Master
Northrup Grumman IT
Postal Division



     
  <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