My table has three columns. One of the columns [Col3] has multiple values. So, when I make a select command on the table :
Col3
Select col1, col2, co
SELECT col1, col2, Split.a.value('.', 'VARCHAR(100)') col3 FROM (SELECT col1, col2, Cast ('<M>' + Replace(col3, ' ', '</M><M>') + '</M>' AS XML) AS Data FROM [table]) AS A CROSS APPLY Data.nodes ('/M') AS Split(a)