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

SELECT INTO Global Temporary Table within Stored Procedure using dynamic SQL - response (1) by cochetti

$
0
0

I believe it is this step that is not allowed in a stored procedure.
This is an excerpt from the dynamic SQL:
 
 
 


INSERT INTO gttBirthdate
 SELECT B.plan, B.membernumber, A.birthdate
    FROM ' || tblsourceforbirthdates || ' AS A
    INNER JOIN ' || tblINPUT || ' AS B
    ON A.planId = B.planID AND A.membernumber = B.membernumber
    WHERE A.birthdate >= DATE''1900-01-01''

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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