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
A: (MAX-MIN)Price
B: MAX(Price)-MIN(Price)
C: (MAX-MIN)(Price)
D: MAX:Price-MIN:Price
举一反三
- BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTimePublishTime是datetime类型。显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。SQL语句:SELECTMAX(Price)As最高价,MIN(Price)As最低价,Str(AVG(Price),6,2)As平均价()As最高价与最低价的差值FromBook A: (MAX-MIN)Price B: MAX(Price)-MIN(Price) C: (MAX-MIN)(Price) D: MAX:Price-MIN:Price
- BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime,BookSort,ISBN,BookPicture,ContentInro,Price,Discount),其中PublishTime是datetime类型。 显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。SQL语句: SELECTMAX(Price)As最高价,MIN(Price)As最低价,Str(AVG(Price),6,2)As平均价, ________As最高价与最低价的差值FromBook
- 显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。语句如下:SELECT Max(Price) AS 最高价, ________ AS 最低价, Str(Avg(Price),6,2) AS 平均价, Max(Price)-Min(Price) AS 最高价与最低价的差值FROM Book
- BookStore数据库中有图书表Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount),其中 PublishTime是datetime类型。 显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。SQL语句
- 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=“%程序%”