标签: sql relational-algebra
给出以下关系代数语句:
id(A) ∪ id(B)
应写为:
SELECT id FROM A JOIN B ON A.id = B.id:
还是我误解了?
答案 0 :(得分:2)
这是UNION,而不是JOIN。
UNION
JOIN
SELECT id FROM A UNION SELECT id FROM B