what if there was two other records IdFirst=3, IdSecond=3, Name=name31 IdFirst=1, IdSecond=2, Name=name1221 this should be there result: IdFirst=1, IdSecond=1, Name=name11,name12 IdFirst=1, IdSecond=2, Name=name1221 IdFirst=2, IdSecond=2, Name=name21,name22 IdFirst=3, IdSecond=3, Name= name31 how i'm not going to string join these two? i just want to join related ones