Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Dynamic Table Names - response (6) by cklam

$
0
0

 

 

 

 

 

 
Yes, I'm doing this manually right now. 
 

SELECT* FROMABCD_201201

UNIONALL

SELECT* FROMABCD_201202

UNIONALL

SELECT* FROMABCD_201203
But I'd like to learn how to create a macro that can help me input the month name (e.g. 201201) automatically.
Unfortunately, a single history table is not available for this data. So I have to work around it in order to capture this data every month. Any suggestions are greatly appreciated.
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>