Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More on.. Concatenate Fields from Related Tables

Status
Not open for further replies.
Jun 29, 2001
195
US
As you stated if there are multiple Items I would need to list those also. Here's more detail. Thanks.

ORDERS
ID Customer
1 Company A
2 Company B
3 Company C



ITEMS
ID OID Desc
1 1 Item 1
2 1 Item 2
3 1 Item 3


SELECT ORDERS AND ALL ITS ITEMS


RESULTS:

1, "Company A", "Item 1, Item 2, Item 3"


Concatinate all rows of a sub table.

Ashley L Rickards
SQL DBA


Ashley L Rickards
SQL DBA
 
Ashley,

There is some code and instructions in 'faq 701-4233'. I was looking for the same thing.

In case anyone else sees this: is there a way to make this code join mulitiple fields? I'm getting duplicate returns because I can't narrow it down...
 
Thanks .. knowsZnuff2breakit and crespo. I'll check it out.

Ashley L Rickards
SQL DBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top