一个有用的网站O(∩_∩)O

超星尔雅学习通《信息系统与数据库技术》2020章节测试答案

答案:X

12、【判断题】BookStore数据库中有图书表 Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount) 查询作者名长度大于等于8的图书信息,显示书名(BookName)及作者(Author)。SQL语句: SELECT BookName, Author FROM Book WHERE Lenth(Author)= 8

答案:X

5.4多表联接查询

1、【单选题】BookStore数据库关系图如下: 查询所有客户的用户等级(VIPClass),要求显示客户号(CustomerCode)、客户名(Name)、用户等级(VIPClass)和评价时间(EvaluateDate)。SQL语句: SELECT Customer.CustomerCode, Name, VIPClass, EvaluateDate FROM Customer JOIN CustomerEvaluation ON _________

A、Customer.CustomerCode=CustomerEvaluation.CustomerCode

B、Customer =CustomerEvaluation

C、Customer.CustomerCode AND CustomerEvaluation.CustomerCode

D、Customer AND CustomerEvaluation

答案:A

2、【单选题】BookStore数据库关系图如下: 查询所有客户的购书情况(也包括未购书人的信息),显示客户号(CustomerCode)、客户名(Name)和订单号(OrderCode)、购书时间(OrderTime)。SQL语句: SELECT Customer.CustomerCode, Name, OrderCode, OrderTime FROM ________ ON Customer.CustomerCode=[Order].CustomerCode

A、Customer LEFT JOIN [Order]

B、Customer INNER JOIN [Order]

C、Customer RIGHT JOIN [Order]

D、Customer,[Order]

答案:A

5.5数据更新语句INSERT、UPDATE、DELETE

1、【单选题】BookStore数据库中有出版社表Publisher(PublisherCode, Publisher, Telephone) 在Publisher表中添加一条记录:“66”、“群众出版社”、“0321-76584391”。SQL语句:________。

A、INSERT INTO Publisher VALUES(‘群众出版社’, ’66’, ‘0321-76584391’)

B、INSERT INTO Publisher VALUES(‘群众出版社’,66, ‘0321-76584391’)

C、INSERT INTO Publisher VALUES(’66’, ‘群众出版社’, ‘0321-76584391’)

D、INSERT Publisher VALUES(’66’, ‘群众出版社’, ‘0321-76584391’)

答案:D

2、【单选题】BookStore数据库中有出版社表Publisher(PublisherCode, Publisher, Telephone) 将Publisher表中出版社代号(CustomerCode)为“01”的出版社联系电话(Telephone)修改为“010-79797979”。 SQL语句:________ 。

A、UPDATE Publisher SET Telephone =010-79797979 WHERE PublisherCode =01

B、UPDATE Publisher SET Telephone =’010-79797979′ WHERE PublisherCode =’01’

C、UPDATE FROM Publisher SET Telephone =’010-79797979′ WHERE PublisherCode =’01’

D、UPDATE Publisher Telephone =’010-79797979′ WHERE PublisherCode =’01’

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18