I have got a child table here. Here is the sample data.
+----+------+----------+----------------+--------+---------+
| ID | Name | City | Email | Phone | Country |
+----+------+----------+----------------+--------+---------+
| 1 | Ted | Chicago | [email protected] | 132321 | USA |
| 1 | Josh | Richmond | [email protected] | 435324 | USA |
| 2 | John | Seattle | [email protected] | 322421 | USA |
| 2 | John | Berkley | [email protected] | 322421 | USA |
| 2 | Mike | Seattle | [email protected] | 322421 | USA |
+----+------+----------+----------------+--------+---------+
The rows above need to be appended together. Only unique values are required.
+----+---------------+----------------------+----------------------------------+-------------------+---------+
| ID | Name | City | Email | Phone | Country |
+----+---------------+----------------------+----------------------------------+-------------------+---------+
| 1 | 'Ted','Josh' | 'Chicago','Richmond' | '[email protected]' | '132321','435324' | 'USA' |
| 2 | 'John','Mike' | 'Seattle','Berkley' | '[email protected]','[email protected]' | '322421' | 'USA' |
+----+---------------+----------------------+----------------------------------+-------------------+---------+