求解数据库查询语句:设有两个基本表R(A,B,C)和S(D,E,F),试用SQL查询语句表达下列关系代数表达式

2024-11-06 13:32:26
推荐回答(1个)
回答(1):

(1)πA(R) SELECT A FROM R
(2)σB='17'(R)  SELECT * FROM R WHERE B=17
(3)R×S  SELECT * FROM R ACROSS S
(4))πA,F(σC=D(R×S)) SELECT A , F FROM R JOIN S ON C=D