I'm working with AWS Redshift and while querying one of my tables I'm getting columns that have only values of null.
C1 C2 C3 C4 C5
--------------------------------
34 43.5 null 75.4 null
null 43.5 null 75.4 null
What I would like to get is
C1 C2 C4
------------------
34 43.5 75.4
null 43.5 75.4
Any ideas on how to get it using SQL or I'll need to get everything and filter it out in the code?