Hi,
I have a table in which data is something like this
ID | Name1 | Name2 | Name3 | Name4 | Name5 | Name6 |
1 | a | |||||
2 | b | |||||
3 | c | |||||
4 | h | |||||
5 | k | |||||
6 | l | m |
Now i want to create a table which contain ID column and new column which contain first non null values from column Name1,Name2, Name3, Name4,Name5,Name6
output will be like that :
ID | Name |
1 | a |
2 | b |
3 | c |
4 | h |
5 | k |
6 | l |