I have a table like this:
cusstomerID; EMail, Telefon, Fax
2; s@l.com; 0123; NULL
2; s@l.com; NULL; 456
3, p@y.com; 01792494976; NULL
3; p@y.com; NULL; 01792494977
4; a@c.com; 0167578252; NULL
5; qr@g.com; 069-541111; NULL
5; qr@g.com; NULL; 069-541222
6; cv@gv.com; NULL; 0123456
Expected Outcome:
cusstomerID; EMail, Telefon, Fax
2; s@l.com; 0123; 456
3, p@y.com; 01792494976; 01792494977
4; a@c.com; 0167578252; NULL
5; qr@g.com; 069-541111; 069-541222
6; cv@gv.com; NULL; 0123456
There are always 2 rows for every costumer in my data base when the customer has a telefon and a Fax Number (when the customer has only one of the 2 he/she has only one row): In the first row, the fax number is empty and in the second the telefone number is empty: how can I put it in one row? Via (my)SQL
I just want to update
the table - not create a new one :)
Thanks for your support!