How to convert multiple rows to one row in SQL Server? [duplicate]
问题 This question already has answers here : Simulating group_concat MySQL function in Microsoft SQL Server 2005? (10 answers) Closed 4 years ago . I have a problem with a query. Let's say I have two tables named PersonInfo and PersonEducation . I applied join operation on these tables with StudentId and I have a result like that. StudentIdId Name University Department Status --------------------------------------------------------------- 1 John Cambridge Computer Graduated 1 John Berkeley