J
Jeff
Hello,
I had just posted this but I think it was beig misunderstood with the
previous data so I am re-posting with better data.
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: CustomerCode
Sample data:
CUSTOMERS
CustomerCode
-----------------
AX993
GH200
AB500
PARTIES
CustomerCode Party
------------------------------------
AX993 Birthday Party
AX993 Thanksgiving Party
AX993 Christmas Party
GH200 Birthday Party
GH200 Halloween Party
What I need is a Query to produce the following, in this format:
CustomerCode Party1 Party2 Party3
------------------------------------------------------------------
AX993 Birthday Party Thanksgiving Party Christmas Party
GH200 Birthday Party Halloween Party
AB500
Can this be done with Queries ? If so what is the SQL code, Please can just
give me the SQL Code ?
Any help would be greatly appreciated.
Thank you,
Jeff
I had just posted this but I think it was beig misunderstood with the
previous data so I am re-posting with better data.
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: CustomerCode
Sample data:
CUSTOMERS
CustomerCode
-----------------
AX993
GH200
AB500
PARTIES
CustomerCode Party
------------------------------------
AX993 Birthday Party
AX993 Thanksgiving Party
AX993 Christmas Party
GH200 Birthday Party
GH200 Halloween Party
What I need is a Query to produce the following, in this format:
CustomerCode Party1 Party2 Party3
------------------------------------------------------------------
AX993 Birthday Party Thanksgiving Party Christmas Party
GH200 Birthday Party Halloween Party
AB500
Can this be done with Queries ? If so what is the SQL code, Please can just
give me the SQL Code ?
Any help would be greatly appreciated.
Thank you,
Jeff