sql - Find columns with NULL values in Teradata -
i find columns in table has null value in it. there system table have information?
to find columns "null" values allowed try...
select * dbc.columns databasename = 'your_db_name' , tablename = 'your_table_name' , nullable = 'y'
then identify specific rows w/ null values, take "columnname" previous result set , run queries identify results... perhaps throw them in volatile table if want take further action on them (update,delete).
-- example found out column "foo" nullable... create volatile table isnull_foo_col ( sel * your_table_name foo null ) data on commit preserve rows;
Comments
Post a Comment