How to show all names for identical contract in T-SQL
问题 I have query like this, and i shows me sort of good results select vup.UgovorId, count(P.Naziv) as BROJNAZIVA from [TEST_Ugovori_Prod].dbo.VezaUgovorPartner as vup inner join [TEST_MaticniPodaci2].[dbo].[Partner] as p on vup.PartnerId = p.PartnerID group by vup.UgovorId Results are like this (first row is vup.UgovorId, second is p.Naziv): 1264 1 1265 3 But I want to show all p.Naziv when that row has more then one for that vup.UgovorId like string so I would be like this: 1264 "Mark" 1265