SQL Help: Select statement Concatenate a One to Many relationship

后端 未结 8 1685
天涯浪人
天涯浪人 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:08

    Are you using 2005 or 2008? If so, then lookup the PIVOT comand. It should be more efficient than a function with a cursor.

提交回复
热议问题