Hi,
I am trying to write a query that can combine multiple rows of data into a single column. What I want is a result set which has JobRef as coulmn 1 and column 2 will be all users assigned to the job e.g. "User 1, User2, User 3" (from User.UserName)
The structure of the database is below, can anyone think of an easy to to resolve this.
Thanks,
Gavin
I am trying to write a query that can combine multiple rows of data into a single column. What I want is a result set which has JobRef as coulmn 1 and column 2 will be all users assigned to the job e.g. "User 1, User2, User 3" (from User.UserName)
The structure of the database is below, can anyone think of an easy to to resolve this.
Code:
Job:
JobRef
Job Title
Assignment:
JobRef
UserID
User:
UserID
UserName
DeptID
Thanks,
Gavin