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

单选题
关于SQL语句“SELECTAuthor,BookName,ID,ISBN,Price FROM book ORDER BY ID DESC”的说法错误的是()。
A

该语句表示从表“book”中查询所有记录

B

该语句显示的字段是“Author”、“BookName”、“ID”、“ISBN”和“Price”

C

该语句对查询到的记录将根据ID按升序排列

D

该语句中的“book”表示数据表


参考解析

解析: 暂无解析

相关考题:

补全语句:select vend_id,count(*) from products where prod_price>=10 group by vend_id ____ count(*)>=2;

Examine the data from the ORDERS and CUSTOMERS table.Which SQL statement retrieves the order ID, customer ID, and order total for the orders that are placed on the same day that Martin places his orders?()A.B.C.D.

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类型。显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。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

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

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

现有表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,包含字段: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

下面SQL语句都使用了聚合函数,其中选项()存在错误。A、SELECT MIN(au_lname) FROM authorsB、SELECT ADD(ytd_sales+1) FROM titlesC、SELECT type,MAX(price) FROM titles GROUP BY type ORDER BY typeD、SELECT COUNT(*) ,avg(price) FROM titles WHERE advance $1000

现有书目表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

指出下面sql语句错误之处() select id_number “Part Number”, sum(price) “price” from inventory where price 50 group by “Part Number” order by 2;A、order by 2B、from inventoryC、where price>50D、group by “Part Number”

如果要查询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”表示数据表

单选题指出下面sql语句错误之处() select id_number “Part Number”, sum(price) “price” from inventory where price 50 group by “Part Number” order by 2;Aorder by 2Bfrom inventoryCwhere price>50Dgroup by “Part Number”

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

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

单选题You want to display the titles of books that meet these criteria: 1. Purchased before January 21, 2001 2. Price is less then $500 or greater than $900 You want to sort the results by their data of purchase, starting with the most recently bought book. Which statement should you use?()ASELECT book_title FROM books WHERE price between 500 and 900 AND purchase_date '21-JAN-2001' ORDER BY purchase_date;BSELECT book_title FROM books WHERE price IN (500,900) AND purchase_date '21-JAN-2001' ORDER BY purchase date ASC;CSELECT book_title FROM books WHERE price 500 or 900 AND purchase_date '21-JAN-2001' ORDER BY purchase date DESC;DSELECT book_title FROM books WHERE (price 500 OR price 900) AND purchase_date '21-JAN-2001' ORDER BY purchase date DESC;

单选题Examine the structure of the STUDENTS table: STUDENT_ID NUMBER NOT NULL, Primary Key STUDENT_NAME VARCHAR2(30) COURSE_ID VARCHAR2(10) NOT NULL MARKS NUMBER START_DATE DATE FINISH_DATE DATE You need to create a report of the 10 students who achieved the highest ranking in the course INT SQL and who completed the course in the year 1999. Which SQL statement accomplishes this task? ()ASELECT student_ id, marks, ROWNUM Rank FROM students WHERE ROWNUM = 10 AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99 AND course_id = 'INT_SQL' ORDER BY mark DESC;BSELECT student_id, marks, ROWID Rank FROM students WHERE ROWID = 10 AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99' AND course_id = 'INT_SQL' ORDER BY mark;CSELECT student_id, marks, ROWNUM Rank FROM (SELECT student_id, marks FROM students WHERE ROWNUM = 10 AND finish_date BETWEEN '01-JAN-99' AND '31-DEC- 99' AND course_id = 'INT_SQL' ORDER BY mark DESC;DSELECT student_id, marks, ROWNUM Rank FROM (SELECT student_id, marks FROM students WHERE (finish_date BETWEEN '01-JAN-99 AND '31-DEC-99' AND course_id = 'INT_SQL' ORDER BY marks DESC) WHERE ROWNUM = 10;ESELECT student id, marks, ROWNUM Rank FROM (SELECT student_id, marks FROM students ORDER BY marks) WHERE ROWNUM = 10 AND finish date BETWEEN '01-JAN-99' AND '31-DEC-99' AND course _ id 'INT_SQL';

多选题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,字段: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)

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

单选题下面SQL语句都使用了聚合函数,其中选项()存在错误。ASELECT MIN(au_lname) FROM authorsBSELECT ADD(ytd_sales+1) FROM titlesCSELECT type,MAX(price) FROM titles GROUP BY type ORDER BY typeDSELECT COUNT(*) ,avg(price) FROM titles WHERE advance $1000

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

单选题要查询book表中所有书名中以“计算机”开头的书籍的价格,可用()语句。ASELECT price FROM book WHERE book_name=‘计算机*’BSELECT price FROM book WHERE book_nameLIKE‘计算机*’CSELECT price FROM book WHERE book_name=‘计算机%’DSELECT price FROM book WHERE book_nameLIKE‘计算机%’