add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version()
5.6.50
id contact_id contact_name
1 1 John Doe
2 2 Mary Smith
3 3 Jose Garcia
4 4 Larry Brown
id pri_contact_id sec_contact_id blah_blah
1 1 3 Team A
2 4 2 Team B
id contact_id contact_name pri_contact_id sec_contact_id blah_blah
1 1 John Doe 1 3 Team A
4 4 Larry Brown 4 2 Team B
id contact_id contact_name id contact_id contact_name pri_contact_id sec_contact_id blah_blah
1 1 John Doe 3 3 Jose Garcia 1 3 Team A
4 4 Larry Brown 2 2 Mary Smith 4 2 Team B
id 1st contact Con_1 name id 2nd contact Con_2 name pri_contact_id sec_contact_id Team
1 1 John Doe 3 3 Jose Garcia 1 3 Team A
4 4 Larry Brown 2 2 Mary Smith 4 2 Team B
Con_1 name Con_2 name Team
John Doe Jose Garcia Team A
Larry Brown Mary Smith Team B
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '+-------------+-------------+--------+
| John Doe    | Jose Garcia | Team A |
+-' at line 1