Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
SoupDragon
Starting Member
2 Posts |
Posted - 2005-03-17 : 06:21:12
|
| Hi, I have a table which consists of two fieldsUCN and LISTREFUCN | LISTREF1001 | AA1011001 | AA1021001 | AB2001004 | AA1011004 | AB2001005 | AA102 ....etcwhat i need is to be able to produce an output like 1001 | AA101,AA102,AB200 1004 | AA101,AB200 1005 | AA102Can this be done, I have used SQL a lot but I do not know what to start looking for in any searches etcThanks. |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-03-17 : 06:30:38
|
look athttp://www.sqlteam.com/item.asp?ItemID=2368under "The New and Improved Approach"then put that code into a UDF that you call in you select statement.Go with the flow & have fun! Else fight the flow |
 |
|
|
SoupDragon
Starting Member
2 Posts |
Posted - 2005-03-17 : 07:19:58
|
| Works PerfectlyMany Thanks |
 |
|
|
|
|
|