MACRO to create a table in SQL
问题 Hi everyone thanks so much for taking the time to read this. I'd like to create a macro in Teradata that will create a table from another table based on specific parameters. My original table consists of three columns patient_id, diagnosis_code and Date_of_birth ...... I'd like to build a macro that would allow me to specify a diagnosis code and it would then build the table consisting of data of all patients with that diagnosis code. My current code looks like this Create Macro All_pats