I have the following select:
SELECT TOP 1000 [ObjectiveId]
      ,[Name]
      ,[Text]
  FROM [dbo].[Objective]
It gives me
Name    Text
0100    Header1
0101    Detail1
0102    Detail2
0200    Header2
0201    Detail1a
0202    Detail1b
Is there a way I could make a string like this with a ||| divider from the data.
Header1  |||  Detail1
Header1  |||  Detail2
Header2  |||  Detail1a
Header2  |||  Detail1b etc. 
The key here is that when the last two digits of name are "00" then it's a header row for following detail rows.
 
     
     
    