How to get multiple records against one record based on relation?

前端 未结 8 825
遇见更好的自我
遇见更好的自我 2020-11-29 09:11

I have two tables Organisation and Employee having one to many relation i.e one organisation can have multiple employees. Now I want to select all information of a particula

8条回答
  •  天涯浪人
    2020-11-29 09:15

    For SQL Server SQLCLR aggregates in this project are inspired by the MSDN code sample however they perform much better and allow for sorting (as strings) and alternate delimiters if needed. They offer almost equivalent functionality to MySQL's GROUP_CONCAT for SQL Server.

    A full comparison of the advantages/disadvantages of the CLR aggregates and the FOR XML solution can be found in the documentation:

    http://groupconcat.codeplex.com

提交回复
热议问题