8. 查询所有的借阅记录,按照读者编号(Rno)升序排列,读者编号相同的,按照借阅时间(BorrowDate)降序排列。 9. 查询借书次数大于一次的读者编号。
10. 查询读者的借书情况,要求列出读者姓名,图书标题,借书日期。
11. 查询所有读者的基本情况和借书情况,没有借书的读者也输出基本信息。 12. 查询所有借了编号为B02的图书的读者编号(Rno)和读者姓名(Rname)。
13. 查询比编号为B01的图书的价格低的图书的编号(Bno)、书名(Btitle)和价格(Bprice)。 14. 查询至少借阅了读者R01借阅的全部书籍的读者编号(Rno)和读者姓名(Rname)。 15. 查询数据库类图书和价格低于50元的图书的信息。
四、实验结果及分析和(或)源程序调试过程 简单查询 use Library select distinct Rname,Rage from Reader2 条件查询 use Library select distinct Rname,Rage from Reader2 where Rage >= 18 and Rage <= 20 use Library select distinct Rno,Rname,Rsex from Reader2 where Reducation = '研究生' or Reducation = '本科' 模糊查询 use Library select distinct Rname,Rsex,Rage from Reader2 where Rname like '林_'