sodakotahusker
Programmer
- Mar 15, 2001
- 601
I have to return a recordset combining a many to one relationship so I fill one field with a list of the values in the many side of the equation.
So I want to bring back something like this
'Football',1997,'punt,pass,kick'
'Basketball',2001,'15,22,18,51,55'
Looping through with a cursor or reading a temp table would be not be performance oriented. How can I pull together a list with embedded selects?
Something like ' select a,b,(select c ... to return the list) I have isolated the required fields in a view with just the distinct values and the id from the master record.
So I want to bring back something like this
'Football',1997,'punt,pass,kick'
'Basketball',2001,'15,22,18,51,55'
Looping through with a cursor or reading a temp table would be not be performance oriented. How can I pull together a list with embedded selects?
Something like ' select a,b,(select c ... to return the list) I have isolated the required fields in a view with just the distinct values and the id from the master record.