实验12-04 查询借过“软件工程”和“操作系统”两本书的所有读者的信息

在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 

  

猜你喜欢

转载自www.cnblogs.com/masterchd/p/9337329.html