|
本题添加时间:2023/4/3 12:59:00 |
|
圆梦客服:王老师 19139051760(微信同号) 19139051760(微信同号) |
请使用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
出自
湖南大学-计算机科学与技术 江开系统
湖南大学
|
更多试题>>>>
1、According to the passage, dogs and cats.
A. can see colors as well as human beings
B. as well as human beings cannot s
2、发行记录(记录号,书号,客户,数量,折扣率,金额),其中记录号为顺序编号,且唯一,书号、数量和金额不为空。
3、成功沟通的原则有哪些?
4、图书目录(书号,书名,作者,出版社编号,价格,出版日期),每本书的书号是唯一的,且书名、出版社编号、价格、出版日期均不为空且所有图书价格均不超过200元。
5、北宋第一次兴学期间,胡瑗用于太学的教学制度被称为( )。
A、苏湖教学法
B、三舍法
C、朱子读书法
D、实学教学法
|