• If the data doesn't need to be in seperate columns, you can just concatenate the row values (and this works better if there is no fixed number of values):

    Concatenating Row Values in Transact-SQL[/url]

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP