select only columns that are not empty oracle sql

Solutions on MaxInterview for select only columns that are not empty oracle sql by the best coders in the world

showing results for - "select only columns that are not empty oracle sql"
Paolo
25 Jan 2020
1select COLUMN_NAME
2from sys.all_tab_columns col
3inner join sys.all_tables t on col.owner = t.owner 
4                              and col.table_name = t.table_name
5where 
6col.table_name = 'SHRDGMR'
7AND (NUM_DISTINCT > 0 or density > 0)
8order by col.column_id;
Laura
02 Feb 2017
1select COLUMN_NAME
2from sys.all_tab_columns col
3inner join sys.all_tables t on col.owner = t.owner 
4                              and col.table_name = t.table_name
5where 
6col.table_name = 'REPLACE THIS WITH YOUR TABLE NAME'
7AND NUM_DISTINCT > 0 
8order by col.column_id;