Write up a function that takes the identification and MNO values and returns a concatenated list of values.Create function dbo.fn_getText(@clientid varchar(100), @mno varchar(10))returns varchar(1000)asbegin declare @res varchar(1000)select @res = isnull(@res, '') + ',' + text from YourTable where identification = @clientid and mno = @mnoset @res = right(@res, len(@res)-1)return @resend
Then from your code call, the function as: select * , dbo.fn_getText(identification, mno) from yourTable
Dinakar NethiSQL Server MVP************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/