• 2022-06-16
    查询book表中price字段的最大值,查询语句是:
    A: select max(price) from book;
    B: select min(price) from book;
    C: select price from min book;
    D: select price from max book;
  • A

    内容

    • 0

      查询不比计算机类图书便宜的书,语句中SELECT name ,price from book where price____(select price from book where category='计算机')缺省的部分应是()。 A: > all B: > any C:

    • 1

      显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。语句如下:SELECT Max(Price) AS 最高价, ________ AS 最低价, Str(Avg(Price),6,2) AS 平均价, Max(Price)-Min(Price) AS 最高价与最低价的差值FROM Book

    • 2

      BookStore数据库中有图书表Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount),其中 PublishTime是datetime类型。‏显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。SQL语句:‏SELECT MAX(Price) As 最高价, MIN(Price) As 最低价, Str(AVG(Price),6,2) As 平均价,‏________ As 最高价与最低价的差值 From Book‏ A: (MAX-MIN)Price B: MAX(Price)-MIN(Price) C: (MAX-MIN)(Price) D: MAX:Price-MIN:Price

    • 3

      查询比计算机类图书便宜的书,语句中 SELECT name ,price from book where price____ (select price from book where category='计算机')缺省的部分应是()。 A: > all B: > any C: < any D: < all

    • 4

      以下语句的作用是()select * from book where Price<(select avg(price) from Book ) A: 查询book表中图书价格大于图书均价的图书信息 B: 查询book表中图书价格小于图书均价的图书信息 C: 查询book表中图书价格等于图书均价的图书信息 D: 查询book表中图书价格的均价