I'm not sure I see the practical application of this... but...declare @table1 table ( id int, string VARCHAR(64))Insert Into @table1 values(1, 'Jorje is the Worst')Insert Into @table1 values(2, 'one of the best') Select max(case id when 1 then SUBSTRING(string,1,8) else null end) + max(case id when 2 then SUBSTRING(string,7,9) else null end) From @table1
Corey
snSQL on previous signature "...Oh and by the way Seventhnight, your signature is so wrong! On so many levels, morally, gramatically and there is a typo!"