搜题
问题   更新时间2023/4/3 12:59:00

请使用SQL语言完成下列工作:
(1)建立上述三个表(包含约束);
(2)查询所有由“清华大学出版社”在2000年以前出版的所有图书;

Select * from books Where pub_date < ‘2000-1-1’ And pub_id =some (select id from publisher where desc=’清华大学出版社’) select isdn, title, author, price, pub_date from book, publisher where pub_date <’2000-1-1’ and book.pub_id=publisher.id (3)查询价格大于100元的未发行过的所有图书,并按出版日期升序排列,当出版日期相同时,按价格降序排列; Select isdn, title, author, price, pub_date From books Where price>100 And not exists( select * from pubRecord where pubRecord.isdn=books.isdn) Order by pub_date, price desc
王老师:19139051760(拨打)