Hi all,
I have a table with four columns: the first column is an ID, and the next three columns contain values. I need to duplicate the rows for each ID based on the 3 value columns. For example, if only two columns have data, I need to duplicate it to two rows, with only one column has value.
The input is:
| ID | Value#1 | Value#2 | Value#3 |
| AAA | 10 | 20 | |
| BBB | | 20 | 30 |
The output is:
| ID | Value#1 | Value#2 | Value#3 |
| AAA | 10 | | |
| AAA | | 20 | |
| BBB | | 20 | |
| BBB | | | 30 |
Thanks ahead!!!