我有這些表關係代數查詢
Employee(ssn, name, sex, address, salary, bdate, dno, superssn)
fk:superssn is ssn in Employee
fk:dno is dnumber in Department
Department(dnumber, dname, mgrssn, mgrstartdate)
fk:mgrssn is ssn in Employee
Dept_locations(dnumber, dlocation)
fk:dnumber is dnumber in Department
Project(pnumber, pname, plocation, dnum)
fk:dnum is dnumber in Department
Dependent(essn, dependent_name, sex, bdate, relationship)
fk: essn is ssn in Employee
Works_on(essn,pno,hours)
fk: essn is ssn in Employee; pno is pnumber in Project
我想檢索每個每位女性員工只使用下列關係代數操作{σ,π,∪,ρ孩子的生日, - ,×}。
到目前爲止我有πbdate(σ{sex ='f'} Employee)x(σ{relationship ='child'} Dependent),但我認爲它不正確。
×在關係代數中總是笛卡爾連接。 – 2013-02-27 01:13:27