combine multiple rows int one row with many to many

后端 未结 2 459
臣服心动
臣服心动 2021-01-29 02:34

Using SQL Server I have the following tables/ data

CUS_VISIT

Cus_ID    Cus_Vis_ID
1           01
1           02
2           01
         


        
2条回答
  •  感动是毒
    2021-01-29 03:22

    You need to do a subquery within your select in order to concatenate values from multiple rows into a single row.

    See this answer for a solution: https://stackoverflow.com/a/545672/745511

提交回复
热议问题