Noob here. I'm trying to learn loops and procedures in Teradata.
I have a set of tables (say TABLENAME) listed in dbc.tables
I'd like to loop thru the set and validate that a specific field satisfies a business rule (say contains the string 'INFO'). The column name and rule is common across the set of tables.
The end result is a table with four columns:
TABLENAME | total_rows | rows_passed| rows_failed.
How would I accomplish this? Thanks in advance.