I have a pretty complex query that pulls some data. The result set looks like this:
mon | tue | wed | thu | fri | sat | sun | dispatch | driver_id | name | phone
x | x | x | x | x | data | x | 1 | 2 | Bob | 123
x | data | x | x | x | x | x | 1 | 2 | Bob | 123
x | x | x | data | x | x | x | 1 | 2 | Bob | 123
I am wondering if anyone can help me to merge multiple columns which have the same dispatch | driver_id | name | phone into ONE ROW
Therefore I will end up with this (All data values substituted x values):
mon | tue | wed | thu | fri | sat | sun | dispatch | driver_id | name | phone
x | data | x | data | x | data | x | 1 | 2 | Bob | 123
DataValues are different and they areTEXT, whilexvalues are always represented asx- There will be various
dispatch | driver_id | name | phonecombinations
xwhere there is no data