I am looking towards unifying a number of columns across my data warehouse
My source system is Oracle based, and I would like to define my columns in my warehouse in such a way that a given column name can only have one data type and length
I am looking towards getting info on actual length used in the columns in my source system, and can identity the column name, datatype and length through this script
SELECT DISTINCT
column_name,
data_type,
data_length
FROM
all_tab_columns
ORDER BY
column_name
This does not however result in actual MAX(LENGTH()) of the individual columns
Is this possible to obtain, perhaps through a loop function?