Hello everyone,
I am trying to find an elegant solution to transform customer data table formatted in a single column as in the example below
Customer no. | Contact type | Value |
123 | abc@email.com | |
123 | def@email.com | |
123 | ghi@email.com | |
123 | Phone | 111-111-111 |
123 | Phone | 222-222-222 |
123 | Phone | 777-777-777 |
456 | jkl@email.com | |
456 | mno@email.com | |
456 | Phone | 333-333-333 |
789 | prs@email.com | |
789 | tuv@email.com | |
789 | wxy@email.com | |
789 | zzz@email.com | |
789 | Phone | 444-444-444 |
789 | Phone | 555-555-555 |
789 | Phone | 666-666-666 |
to a new table where one customer record can hold up to two phone numbers and only one email address, as below
Customer no. | Phone1 | Phone2 | |
123 | 111-111-111 | 222-222-222 | abc@email.com |
123 | 777-777-777 | def@email.com | |
123 | ghi@email.com | ||
456 | 333-333-333 | jkl@email.com | |
456 | mno@email.com | ||
789 | 444-444-444 | 555-555-555 | prs@email.com |
789 | 666-666-666 | tuv@email.com | |
789 | wxy@email.com | ||
789 | zzz@email.com |
Thanks in advance for help
They both look the same. Can you confirm?
Please check now
@Marceli_Szadowiak
A bit twist on the Sequence Number arrangement. 😁
User | Count |
---|---|
52 | |
27 | |
25 | |
24 | |
21 |