I have a table with a column that has multiple values stored in one column I want to query that data to a file and separate the values.
Example: This column (SHIFT_LENGTHS) has values stored as a concatenate of each day of the week with "#" as a separator which represents seconds for day of the week.
SELECT 
  NAME
 ,SHIFT_LENGTHS
FROM SHIFTGUARANTEE
ORDER BY NAME
SQL Results
NAME  ,SHIFT_LENGTHS
Shift1,#14400#14400#14400#14400#14400#14400#14400#
I want to query the data and present it in a file this way:
NAME  ,Mon  ,Tue  ,Wed  ,Thu  ,Fri  ,Sat  ,Sun
Shift1,14400,14400,14400,14400,14400,14400,14400
 
     
     
    