您好我有这两个表:
(1, Anaheim, P)
(2, Arizona, P)
(3, Boston, S)
(4, Buffalo, M)
(5, Detroit, M)
和
(1, date, 1, 2)
(2, date, 2, 3)
(3, date, 5, 3)
团队数据示例:
class Person {
constructor(obj, classMap) {
for (let prop of Object.keys(classMap)) {
this[prop] = new classMap[prop](obj[prop]);
}
}
}
let p = new Person(obj, { address: Address });
和匹配:
int[][] x = {{3,1,4},{1,5,9}};
int[] y = {2,6,7};
结果应该只是阿纳海姆(在同一个分区对阵亚利桑那州)
我想只列出球队的名字,这些名字只对同一赛区的球队进行比赛。我怎么能在SQL和关系代数中做到这一点?除法只是字符值。谢谢你的帮助...
答案 0 :(得分:2)
SELECT t1.team_name AS team_name1,
t2.team_name AS team_name2
FROM team t1
INNER JOIN match m
ON ( t1.team_id = m.team_team_id )
INNER JOIN team t2
ON ( t2.team_id = m.team_team_id1 )
WHERE t1.division = t2.division