我有3个表:SQL连接并重复结果?
1)participant
***********
+id_participant
+id_poste
+name
+email
2) profile_formaion
****************
+id_poste
+id_formation
3) formation
*********
+id_formation
+lable
EXAMPLE:
DATA:参与者
1 | 2 | user1 | [email protected]
DATA:profile_formation
2 | 3
2 | 4
DATA:形成
1 |lable1
2 |lable2
3 |lable3
4 |lable4
任何人都可以帮助我,我如何使用SQL语句(加入),以获得结果:
DATA:结果
1 | 2 | user1 | [email protected] | label3
1 | 2 | user1 | [email protected] | label4
感谢
+1,这里是[工作演示](http://www.sqlfiddle.com/ #!2/90c07/2) –