信息系统与数据库技术2023章节测试答案
A、PublishTime=2009
B、YEAR(PublishTime)=2009
C、PublishTime>='2009-1-1' AND PublishTime<'2010-1-1'
D、PublishTime>='2009-1-1' AND PublishTime<='2009-12-31'
我的答案:BCD
10、【多选题】BookStore数据库中有订单表Order(OrderCode, CustomerCode, TotalPrice, Address, OrderTime, OrderStatus) 查询订单总价(TotalPrice)在100到200元之间的订单信息。SQL语句: SELECT OrderCode, TotalPrice, OrderTime, OrderStatus FROM [Order] WHERE ________
A、TotalPrice BETWEEN 100 AND 200
B、TotalPrice NOT BETWEEN 100 AND 200
C、100 <=TotalPrice<=200
D、TotalPrice>=100 And TotalPrice<=200
我的答案:AD
11、【判断题】BookStore数据库中有图书表 Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount) 查询图书名称(BookName)含有“程序”的图书信息。SQL语句: SELECT BookCode,BookName,Author,Price,Discount FROM Book WHERE Name=“%程序%”
我的答案: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语句:________。
★《布宫号》提醒您:民俗信仰仅供参考,请勿过度迷信!