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 |
|
elwoos
Master Smack Fu Yak Hacker
2052 Posts |
Posted - 2004-05-10 : 11:11:08
|
| I just can't remember the answer to this though I swear I've seen it somewhere.I have two tables, lets say TableA and TableF, which both contain the field ID which they can be joined on. TableA has one or more (up to a maximum of about 4) rows for each ID in TableF. I want my results to show all of these values in a single rowso for exampleTableF:ID FNumber1 a2 d3 gTableAID ANumber KCode1 a1 XX1 a2 XY2 a3 XX213 a4 XY3 a5 XX3 a6 XX133 a7 XY13would produce the followingID FNumber KCode1 KCode2 KCode3 KCode4 1 a XX XY2 d XX213 g XY XX XX13 XY13I got part way there but ended up with some duplication. IF anyone can please point me in the right direction I would be very gratefulthankssteveSteve no function beer well without |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2004-05-10 : 11:20:51
|
| [url]http://www.sqlteam.com/item.asp?ItemID=2368[/url]Brett8-) |
 |
|
|
|
|
|