I have SQL query which fetches results like this
Column1 Column2 Column3 Column4 Column5 Column6 Coulmn7
A-66001 46063 137039 0-82-A0-A0 NULL NULL NULL
A-66001 46063 139045 NULL NULL NULL NULL
A-66001 46063 141051 NULL 40 NULL 30
A-66001 46063 237164 NULL NULL 20 NULL
I want a result combining all the rows like this .
Column1 Column2 Column3 Column4 Column5 Column6 Coulmn7
A-66001 46063 137039 0-82-A0-A0 40 20 30
I tried using Max function but that did not work for string . Need the solution at the earliest
max()did not work for "string"? What happened?max()works fine on strings.