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;
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;