ok, i will explain first what i have, and what i need as result.
basicly, i have a phonebook, but the phonebook has duplicate records for “company”
while the duplicate records are not exactly duplicate… :\
i think an example will explain better:
demo records:
1. Company A, Address A, Phone A
2. Company A, Address A, Phone B
3. Company A, Address A, Phone C
4. Company A, Address B, Phone A
what i want, is to make a new table, which will be filled with all “Company A”, “Address A” phone numbers into one records, so the result should be something like:
Company A, Address A, Phone A, Phone B, Phone C etc..
The second problem is that “company A” can be also a bit diffrent, example:
1. Company XYZ, Address A, Phone A
2. Company ABC, Address A, Phone A
i dont even know how to start with this.
i was thinking of doing it by coding some c# application,
but i think there might be an easier solution by using pure mysql.
Your way does not maintain normalization,
however, the following might what you are looking for
create new table:
insert into new table:
assuming phone does not contains
,