Query below finds all tables that have 'PRODUCT_NUMBER' column.
select c.tabschema as schema_name, c.tabname as table_name from syscat.columns c inner join syscat.tables t on t.tabschema = c.tabschema and t.tabname = c.tabname where c.colname = 'PRODUCT_NUMBER' and t.type = 'T' order by schema_name, table_name;
- schema_name - name of schema of found table
- table_name - name of found table
- One row represents a table
- Scope of rows: all found tables
- Ordered by schema name
List of tables that have 'PRODUCT_NUMBER' column.