hi,i have following situation:create table value(id int,list nvarchar(30),int smallint)create table value_label(int smallint,label nvarchar(10))insert into value_labelselect 1, '111' union allselect 4, '4444' union allselect 5, '55555' union allselect 6, '666666' union allselect 10, '101010'insert into valueselect 1, '4;5;6;', 3 union allselect 2, '1;5;', 2 union allselect 3, '1;', 1 union allselect 4, '5;10;1;', 3
and if i runselect * from value
i getid list int----------- ------------------------------ ------1 4;5;6; 32 1;5; 23 1; 14 5;10;1; 3(4 row(s) affected)but i would like to have export in column list with labels from label table,so it would look like:id list int----------- ------------------------------ ------1 4444;55555;666666; 32 111;55555; 23 111; 14 55555;101010;111; 3(4 row(s) affected)Anybody have function or idea how to do it.i'm using SQL 2000.Thank you