这是我试图找回的:“在教授某些班级的每个房间教授教师的姓名”
My tables are:
CREATE TABLE FACULTY (
fid NUMERIC(6) NOT NULL,
fname VARCHAR(20),
dept VARCHAR(5),
PRIMARY KEY (fid),
FOREIGN KEY (fid)
references STUDENT (sid)
);
CREATE TABLE CLASS(
cnum VARCHAR(6),
meets_at TIME,
room VARCHAR(6),
fid NUMERIC(6) ,
PRIMARY KEY (cnum),
FOREIGN KEY (fid)
references FACULTY (fid)
);