Sorry for the messy title but here is my problem description.
| id|dateKey|colA|colB|colD|colE|
+---+-------+----+----+----+----+
| 1 |180111 | 1 | 5 |Null|Null|
| 2 |180111 |Null|Null| 6 | 7 |
| 3 |180111 | 2 | 5 | 3 | 2 |
I have the above table data but I want the result to appear as below when data aggregated (e.g. sum) by date:
|dateKey|colA|colB|colD|colE|
+-------+----+----+----+----+
|180111 | 3 | 10 |9 |9 |
Is there a way to do it as I am struggling to achieve it?
Note: this query will be running on 10 Gb of data with date filters.