所以我有3个表编写的SQL语句与JOIN
表1:团队
| team_id | name |
-----------------------
| 1 | alpha |
| 2 | beta |
| 3 | gamma |
表2:建筑
| building_id | name |
---------------------------
| 1 | Baxter |
| 2 | LexCorp |
表3:团队位置
| team_id | building_id |
-------------------------
| 1 | 1 |
| 2 | 1 |
| 3 | 2 |
我现在需要的是一个sql查询将列出位于巴克斯特大厦球队的名字,我不能为我的生活甚至认为从哪里开始就这一个,即时通讯相当新的SQL
https://www.google.com/#q=join+statement –
http://dev.mysql.com/doc/refman/5.0/en/join .html –
http://www.google.com/search?q=sql+basics –