J
Jeff
Hello,
I will do my best to explain what I need. I am not sure if it is even
possible to do with a Query, but here it goes. I would need the whole SQL
query if it is possible.
I have a Table CUSTOMERS.
Then I have another Table PARTIES where there are multiple Parties for each
Customer.
They are linked by "CustomerNumber"
Sample data:
CUSTOMERS
CustomerNumber
-----------------
1
2
3
PARTIES
CustomerNumber Party
------------------------------------
1 Birthday Party
1 Thanksgiving Party
1 Christmas Party
2 Birthday Party
2 Halloween Party
What I need is a Query to produce the following, in this format:
CustomerNumber Party1 Party2
Party3
------------------------------------------------------------------------------
1 Birthday Party Thanksgiving Party
Christmas Party
2 Birthday Party Halloween Party
3
Can this be done with Queries ? If so what is the code ?
Any help would be greatly appreciated.
Thank you,
Jeff
I will do my best to explain what I need. I am not sure if it is even
possible to do with a Query, but here it goes. I would need the whole SQL
query if it is possible.
I have a Table CUSTOMERS.
Then I have another Table PARTIES where there are multiple Parties for each
Customer.
They are linked by "CustomerNumber"
Sample data:
CUSTOMERS
CustomerNumber
-----------------
1
2
3
PARTIES
CustomerNumber Party
------------------------------------
1 Birthday Party
1 Thanksgiving Party
1 Christmas Party
2 Birthday Party
2 Halloween Party
What I need is a Query to produce the following, in this format:
CustomerNumber Party1 Party2
Party3
------------------------------------------------------------------------------
1 Birthday Party Thanksgiving Party
Christmas Party
2 Birthday Party Halloween Party
3
Can this be done with Queries ? If so what is the code ?
Any help would be greatly appreciated.
Thank you,
Jeff