网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTimePublishTime是datetime类型。将Book表中的所有“外语”类图书的价格降低10%,并将折扣均设为8折。SQL语句:UPDATEBookSET()WhereBookSort=‘外语‘。

  • A、Price=Price*0.9,Discount=0.8
  • B、Price=Price*(1-10%),Discount=0.8
  • C、Price=0.9,Discount=0.8
  • D、Discount=0.8,Price=Price*0.9

参考答案

更多 “BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTimePublishTime是datetime类型。将Book表中的所有“外语”类图书的价格降低10%,并将折扣均设为8折。SQL语句:UPDATEBookSET()WhereBookSort=‘外语‘。A、Price=Price*0.9,Discount=0.8B、Price=Price*(1-10%),Discount=0.8C、Price=0.9,Discount=0.8D、Discount=0.8,Price=Price*0.9” 相关考题
考题 ● 在XML中,元素book 的声明语句如下:!ELEMENT book (title,price+,author?,borrow*)该声明语句表明,元素book中子元素 (62) 至少出现一次。A. title B. price C. author D. borrow

考题 Non-firm states the price and discount without leaving room for negotiation.()

考题 在XML中,元素book的声明语句如下:<1ELEMENT book (title.price+, author?, borrow*)>该声明语句表明,元素book中子元素______至少出现一次。 A.title] B.price] C.author D.borrow

考题 BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime查询作者名长度大于等于8的图书信息,显示书名(BookName)及作者(Author)。SQL语句:SELECTBookName,AuthorFROMBookWHERELenth(Author)=8

考题 BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime,PublishTime是datetime类型。查询Book表中的图书类别(BookSort),要求每个类别只显示一次。SQL语句:SELECT()BookSort FROM BookA、DISTINCTB、ONLYC、ONED、PERCENT

考题 BookStore数据库中有图书Book(BookCode,BookName,Author,PublisherCode,PublishTimePublishTime是datetime类型。查询2009年出版的少儿类图书,要求显示图书名称(BookName)、作者(Author)、出版时间(PublishTime)、价格(Price)和折扣(Discount),并且字段标题分别为图书名称、作者、内容简介、价格和折扣。SQL语句SELECTBookNameAs图书名称,AuthorAs作者,convert(char(10),PublishTime,120)As出版时间,PriceAs价格,DiscountAs折扣FROMBookWHEREBookSort=‘少儿’AND()A、PublishTime=2009B、YEAR(PublishTime)=2009C、PublishTime=‘2009-1-1‘ANDPublishTime‘2010-1-1’D、PublishTime=‘2009-1-1‘ANDPublishTime=‘2009-12-31‘

考题 BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime查询图书名称(BookName)含有“程序”的图书信息。SQL语句:SELECTBookCode,BookName,Author,Price,DiscountFROMBookWHEREName=“%程序%”

考题 翻译:We can quote you the price of $75/typewriter and 10% discount on shipping.

考题 现有表book,字段:id(int),title(varchar),price(float);其中id字段设为标识,使用insert语句向book表中插入数据,以下语句错误的是()。A、insert into book(id,title,price)values(1,’java’,100)B、insert into book(title,price)values(’java’,100)C、insert into book values(’java’,100)D、insert book values(’java’,100)

考题 表book中包含三个字段:title(varchar),author(varchar),price(float)。Author的默认值是’UNKNOW’,执行sql语句:insertbook(title,price)values(‘jsp’,50)。以下结果正确的是()。A、插入失败,sql语句有错B、插入成功,author列的数据是UNKNOWC、插入成功,author列的数据是NULLD、插入成功,author列的数据是50

考题 要查询book表中所有书名中以“计算机”开头的书籍的价格,可用()语句。A、SELECT price FROM book WHERE book_name=‘计算机*’B、SELECT price FROM book WHERE book_nameLIKE‘计算机*’C、SELECT price FROM book WHERE book_name=‘计算机%’D、SELECT price FROM book WHERE book_nameLIKE‘计算机%’

考题 现有书目表book,包含字段:price(float);现在查询一条书价最高的书目的详细信息,以下语句正确的是()A、select top 1 * from book order by price ascB、select top 1 * from book order by price descC、select top 1 * from book where price= (select max (price)from book)D、select top 1 * from book where price= max(price)

考题 在SQLServer数据库(排序规则为默认值)中,有一个产品表products,你想按照价格从小到大的顺序显示所有产品的名称(productname)和价格(price),可以实现该功能的T-SQL语句是()A、SELECT productname,price from products order by price ASCB、SELECT productname,price from products order by price DESCC、SELECT productname,price from products order by priceD、SELECT productname and price from products order by price DESC

考题 现有书目表book,包含字段:价格price(float),类别type(char);现在查询各个类别的平均价格、类别名称,以下语句正确的是()。A、select avg(price),type from book group by typeB、select count(price),type from book group by priceC、select avg(price),type from book group by priceD、select count(price),type from book group by type

考题 如果要查询book表中所有书名以“数据库”开头的书籍价格,下列()语句是正确的。A、SELECT price FROM book WHERE book_name=“数据库*”B、SELECT price FROM book WHERE book_name LIKE“数据库*”C、SELECT price FROM book WHERE book_name=“数据库%”D、SELECT price FROM book WHERE book_name LIKE“数据库%”

考题 关于SQL语句“SELECTAuthor,BookName,ID,ISBN,Price FROM book ORDER BY ID DESC”的说法错误的是()。A、该语句表示从表“book”中查询所有记录B、该语句显示的字段是“Author”、“BookName”、“ID”、“ISBN”和“Price”C、该语句对查询到的记录将根据ID按升序排列D、该语句中的“book”表示数据表

考题 单选题表book中包含三个字段:title(varchar),author(varchar),price(float)。Author的默认值是’UNKNOW’,执行sql语句:insertbook(title,price)values(‘jsp’,50)。以下结果正确的是()。A 插入失败,sql语句有错B 插入成功,author列的数据是UNKNOWC 插入成功,author列的数据是NULLD 插入成功,author列的数据是50

考题 判断题BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime查询作者名长度大于等于8的图书信息,显示书名(BookName)及作者(Author)。SQL语句:SELECTBookName,AuthorFROMBookWHERELenth(Author)=8A 对B 错

考题 多选题BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTimePublishTime是datetime类型。将Book表中的所有“外语”类图书的价格降低10%,并将折扣均设为8折。SQL语句:UPDATEBookSET()WhereBookSort=‘外语‘。APrice=Price*0.9,Discount=0.8BPrice=Price*(1-10%),Discount=0.8CPrice=0.9,Discount=0.8DDiscount=0.8,Price=Price*0.9

考题 判断题BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime查询图书名称(BookName)含有“程序”的图书信息。SQL语句:SELECTBookCode,BookName,Author,Price,DiscountFROMBookWHEREName=“%程序%”A 对B 错

考题 单选题现有书目表book,包含字段:price(float);现在查询一条书价最高的书目的详细信息,以下语句正确的是()。A select top1*from book order by price ascB select top1*from book order by price descC select top1*from book where priceD select top1*from book where price=max(price)

考题 问答题翻译:We can quote you the price of $75/typewriter and 10% discount on shipping.

考题 单选题关于SQL语句“SELECTAuthor,BookName,ID,ISBN,Price FROM book ORDER BY ID DESC”的说法错误的是()。A 该语句表示从表“book”中查询所有记录B 该语句显示的字段是“Author”、“BookName”、“ID”、“ISBN”和“Price”C 该语句对查询到的记录将根据ID按升序排列D 该语句中的“book”表示数据表

考题 单选题现有表book,字段:id(int),title(varchar),price(float);其中id字段设为自增长的标识,使用insert语句向book表中插入数据,以下语句错误的是()。A insertintobook(id,title,price)values(1,’java’,100)B insertintobook(title,price)values(’java’,100)C insertintobookvalues(’java’,100)D insertbookvalues(’java’,100)

考题 单选题BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime,PublishTime是datetime类型。查询Book表中的图书类别(BookSort),要求每个类别只显示一次。SQL语句:SELECT()BookSort FROM BookA DISTINCTB ONLYC ONED PERCENT

考题 单选题BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTimePublishTime是datetime类型。显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。SQL语句:SELECTMAX(Price)As最高价,MIN(Price)As最低价,Str(AVG(Price),6,2)As平均价()As最高价与最低价的差值FromBookA (MAX-MIN)PriceB MAX(Price)-MIN(Price)C (MAX-MIN)(Price)D MAX:Price-MIN:Price

考题 多选题现有表book,字段:id(int),title(varchar),price(float);其中id字段设为标识,使用insert语句向book表中插入数据,以下语句错误的是()。Ainsert into book (id,title,price) values(1,'java',100)Binsert into book (title,price) values('java',100)Cinsert into book values ('java',100) 这辆都不可以啊,如果不指定列需要明确的给出空值Dinsert book values('java',100)