我有三张table
Table 1 Table 2 Table 3
id deg id t1_id name id t2_id t1_id name
101 ABC 1 202 Test 1 1 3 202 Job a
202 PQR 2 202 Test 2 2 1 101 Job b
303 XYZ 3 101 Test 3 3 2 303 job C
How write a single MySql query so that i can achieve results as Follows:
t1_name t1_deg t2_name t2_deg
Test 1 PQR Job b ABC
Test 2 PQR Job c XYZ
Test 3 ABC Job a PQR
Thanks For Help
1条答案
按热度按时间bjp0bcyl1#