在Exam数据库中查询同时借过“软件工程”和“操作系统”两本书的所有读者的编号和姓名。
select distinct Exam..reader.rno,Exam..reader.rname from Exam..reader,Exam..borrow,Exam..book where borrow.rno = reader.rno and (book.bname = '操作系统' or book.bname = '软件工程') and borrow.rno = reader.rno
在Exam数据库中查询同时借过“软件工程”和“操作系统”两本书的所有读者的编号和姓名。
select distinct Exam..reader.rno,Exam..reader.rname from Exam..reader,Exam..borrow,Exam..book where borrow.rno = reader.rno and (book.bname = '操作系统' or book.bname = '软件工程') and borrow.rno = reader.rno