Hi i'm new to terradata. My requirement is to get distinct count of all columns of all tables in a database. For doing this I'm trying to write a cursor which will select all columns of a table from dbc.columns and pass one by one. Then we have to take distinct count of that column and insert in some temporary table. Can anyone plz share the full code.