三个表:图书信息表、读者信息表、借阅表图书信息(书号、书名、作者、出版日期、出版社、图书存放位置、总数量)读者信息表(图书证号、姓名、所在系、借书上限数)借阅表(图书证号、书号、借出日期、应还日期)数据库表结构如下:BOOK(BNO, BN, BAU, BDA, BPU, BPL, BNU)READER(RNO, RN, RDE, RUP)BORROW(RNO, BNO, BDA, RDA)1、查询 “ S0701026 ”读者借了相同图书的读者的图书证号和姓名select rno,rn from reader where rno in(select a
rno from borrow as a,borrow as b where a
bno and b
rno='S0701026') 2、查询每个读者的姓名和所借图书名select rn,bn from reader,borrow,book where reader
rno=borrow
rno and borrow
bno=book
bno 3、查没有借书的读者的图书证号和姓名select rno,rn from reader where rno not in(select rno from borrow) 4、查询借阅了 “数据结构 ”的读者数量select count(*) from borrow where bno=(select bno from book where bn='数据结构 ') group by bno 5、查“李丽 ”和“张朝阳 ”都借阅了的图书的书号select a
bno from borrow as a,borrow as b where a
rno=(select rno from reader where rn='李丽 �