Hi,
This is a complicated.
I have two Tables:
Client (fields: ClientCode, ClientAddress...)
Vendor (fields: VendorCode, VendorName...)
Then, doing
-------------------------------
select VendorCode, ClientCode where Client.VendorCode = Vendor.VendorCode
-------------------------------
I may have:
VendorCode ClientCode
VC1 CL1
VC5 CL45
VC1 CL24
I want to put on a new table, that information, but in the following way:
Vendor Client
VC1 CL1, CL24
VC5 CL1
So I have concatenated two values in the same field, where the VendorCode is the same.
I have to do it using an SQL statement.
Any ideas?
Many thanks,
im
This is a complicated.
I have two Tables:
Client (fields: ClientCode, ClientAddress...)
Vendor (fields: VendorCode, VendorName...)
Then, doing
-------------------------------
select VendorCode, ClientCode where Client.VendorCode = Vendor.VendorCode
-------------------------------
I may have:
VendorCode ClientCode
VC1 CL1
VC5 CL45
VC1 CL24
I want to put on a new table, that information, but in the following way:
Vendor Client
VC1 CL1, CL24
VC5 CL1
So I have concatenated two values in the same field, where the VendorCode is the same.
I have to do it using an SQL statement.
Any ideas?
Many thanks,
im