A macro is a group of one or more SQL statements that are given a name and executed with a simple command. Macros ensure multiple SQL steps are not forgotten as the macro remembers them. When a macro contains multiple commands, Teradata treats them as a single transaction so either all the commands succeed or none of them do. A sample macro is provided that selects data from different tables and conditions in one transaction.