SQL Help: Select statement Concatenate a One to Many relationship

后端 未结 8 1735
天涯浪人
天涯浪人 2021-01-03 16:28

For example I have two tables. The first table is student while the second table are the courses that the a student is taking. How can I use a select statement so that I can

8条回答
  •  感情败类
    2021-01-03 17:18

    You can use a UDF that cursors through the related records and concats a return string together but this will be expensive - if you give it a go make sure your cursor is READ_ONLY FAST_FORWARD

提交回复
热议问题