31 July 2018        Add to Favorites   Report

How to find out the tables with specific column names in them in Teradata?

Scenario: We have column names that we want to look up in the entire DB and list out all tables which have those columns.


You are looking for this:

SELECT tablename,columnname
FROM dbc.columnsV
WHERE ColumnName in ('col1', 'col2');

Read great educational content like this and a lot more ! Create my free account now 🎁