I have some table from which I fetch data for analytics. I need some workarounds to find records which have empty data or null values in the columns. The hard part is that I need to eliminate record columns which contain data. Please see the below example to get a good understanding.
+----+------+------+------+------+
| ID | col1 | col2 | col3 | col4 |
+----+------+------+------+------+
| 1 | Val1 | Val2 | Val3 | NULL |
| 2 | NULL | Val2 | NULL | Val4 |
| 3 | Val1 | Val2 | Val3 | |
+----+------+------+------+------+
Is it possible to get an output like below using a query?
+------+------+------+
| 1 | 2 | 3 |
+------+------+------+
| col4 | col1 | col4 |
| | col3 | |
| | | |
+------+------+------+