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

题目内容 (请给出正确答案)
单选题
指出下面sql语句错误之处() select id_number “Part Number”, sum(price) “price” from inventory where price >50 group by “Part Number” order by 2;
A

order by 2

B

from inventory

C

where price>50

D

group by “Part Number”


参考答案

参考解析
解析: 暂无解析
更多 “单选题指出下面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”” 相关考题
考题 关于group by 以下语句正确的是( )A.SELECT store_name FROM Store_Information GROUP BY store_nameB. SELECT SUM(sales) FROM Store_Information GROUP BY salesC.SELECT store_name, price SUM(sales) FROM Store_Information GROUP BY store_name,priceD.SELECT store_name, SUM(sales) FROM Store_Information GROUP BY store_name

考题 查找教师表中教师最高的工资值,下列SQL语句正确的是A.SELECT MAX(工资) FROM 教师表B.SELECT MIN(工资) FROM 教师表C.SELECT AVG(工资) FROM 教师表D.SELECT SUM(工资) FROM 教师表

考题 在教师表中统计职称为教授的人数。请对下面的SELECT-SQL语句填空: SELECT【 】FROM教师表WHERE职称=“教授”

考题 The PRODUCTS table has these columns:PRODUCT_ID NUMBER(4)PRODUCT_NAME VARCHAR2(45)PRICE NUMBER(8,2)Evaluate this SQL statement:SELECT *FROM PRODUCTSORDER BY price, product _ name;What is true about the SQL statement? ()A. The results are not sorted.B. The results are sorted numerically.C. The results are sorted alphabetically.D. The results are sorted numerically and then alphabetically.

考题 设有学生表XS(学号,课程号,成绩),用SQL语句检索每个学生的成绩总和的语句是:SELECT 学号,SUM(成绩) FROM XS ______

考题 设有SC (学号,课程号,成绩)表,下面SQL的SELECT语句检索成绩高于或等于平均成绩的学生的学号。SELECT 学号 FROM scWHERE 成绩>=(SELECT【 】FROM sc)

考题 有如下SQL语句:SELECT SUM(工资) FROM 职工表 WHERE 仓库号 IN;(SELECT 仓库号 FROM 仓库表 WHERE 所在城市="北京" OR 所在城市="上海")执行语句后,工资总和是A.3500.00B.3000.00C.5000.00D.10500.00

考题 有某商场的销售记录(日期、商品名称、商品单价、销售数量),要查询每天的销售情况,以下正确的SQL语句是( )。A. SELECT*FROM销售记录0RDER BY日期B. SELECT*FROM销售记录GROUP BY日期C. SELECT日期,SUM(销售数量)AS销售总数量,SUM(销售数量*商品单价)销售总额FROM销售记录0RDER BY日期D. SELECT日期,SUM(销售数量)AS销售总数量,SUM(销售数量)*SUM(商品单价)销售总额FROM销售记录0RDER BY日期

考题 下列叙述中,错误的是 ______ 。A.SELECT-SQL语句可以为输出的字段重新命名B.SELECT-SQL语句可以为输出的记录进行排序C.SELECT-SQL语句不能重新指定列的顺序D.SELECT-SQL语句不能省略FROM子句

考题 在选课表中统计有成绩的记录数。请填空补充下面的SELECT-SQL语句:SELECT【 】FROM 选课表

考题 若需统计zg表中车身厂的职工工资总和,下面语句正确的是( )。A.SELECT SUM(基本工资)FROM zgB.SELECT SUM(基本工资)FROM zgWHERE 单位=“车身厂”C.SELECT COUNT(基本工资)FROM zgD.SELECT COUNT(基本工资)FROM zgWHERE单位=“车身厂”

考题 在SQL-SELECT语句中,聚集函数COUNT和SUM都可用于统计表中记录行数。

考题 评估此CREATE TABLE语句的执行结果: CREATE TABLE part( part_id NUMBER, part_name VARCHAR2(25), manufacturer_id NUMBER(9), retail_price NUMBER(7,2) NOT NULL, CONSTRAINT part_id_pk PRIMARY KEY(part_id), CONSTRAINT cost_nn NOT NULL(cost), CONSTRAINT FOREIGN KEY (manufacturer_id) REFERENCES manufacturer(id)); 哪一行会导致产生错误()A、6B、7C、8D、9

考题 数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()A、Select* From Student Where Sex=’男’B、Select* From Student Where Number NotIn(Select Number From Student Where Sex=’男’)C、Select* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)D、Select* From Student Where Sex’男’

考题 数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。统计学生总人数,下列哪个SQL语句是正确的()A、Select Count(1)From StudentB、Select Sum(*)From StudentC、Selec tAvg(*)From StudentD、Select Count(*)From Student

考题 如果使用下面的SQL语句查询数据库: SELECT* FROM 事务处理 WHERE 产品标识=4569; 执行该语句时,会实现哪些SQL SELECT语句功能?()A、仅选择功能B、仅映射功能C、仅选择和映射功能D、映射、选择和联接功能

考题 下列对自由表xs.dbf建立查询的SELECT-SQL语句中,错误的是()。A、SELECT*FROMxsINTOSCREENB、SELECT*FROMxsINTOCURSORtempC、SELECT*FROMxsINTOTABLEtempD、SELECT*FROMxsTOFILEtemp.txt

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

考题 假设订单表orders用来存储订单信息,cid代表客户编号,money代表单次订购额,现要查询每个客户的订购次数和每个客户的订购总金额,下面()sql语句可以返回正确结果。A、select cid,count(distinct(cid)),sum(money) from orders group by cidB、select cid,count(distinct(cid)),sum(money) from orders order by cidC、select cid,count(cid),sum(money) from orders order by cidD、select cid,count(cid),sum(money) from orders group by cid

考题 下面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

考题 在SQL SERVER中,下面哪个符号不是SELECT语句中LIKE子句的有效通配符()。A、%B、_C、*D、^

考题 指出下面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”

考题 Examine the description of the MARKS table: STD_ID NUMBER(4) STUDENT_NAME VARCHAR2(30) SUBJ1 NUMBER(3) SUBJ2 NUMBER(3) SUBJ3 NUMBER(3) SUBJ1, SUBJ2, and SUBJ3 indicate the marks (grades) obtained by a student in the three subjects. Which two statements are valid? ()A、SELECT SUM(subj1, subj2, subj3) FROM marks;B、SELECT SUM(subj1 + subj2 + subj3) FROM marks;C、SELECT SUM(subj1), SUM(subj2), SUM(subj3) FROM marks;D、SELECT MAX(subj1, subj2, subj3) FROM marks;E、SELECT MINIMUM(subj1) FROM marks;F、SELECT COUNT(std_id) FROM marks WHERE subj1 = AVG(subj1);

考题 单选题在SQL Server 数据库中,下面调用存储过程的语句错误的是()。A EXEC proc_stu @sum OUTPUT,64,78B EXEC proc_stu @sum OUTPUT,@total output,78C EXEC proc_stu @sum OUTPUT,604D EXEC Calculate @sum OUTPUT,@total output

考题 单选题评估此CREATE TABLE语句的执行结果: CREATE TABLE part( part_id NUMBER, part_name VARCHAR2(25), manufacturer_id NUMBER(9), retail_price NUMBER(7,2) NOT NULL, CONSTRAINT part_id_pk PRIMARY KEY(part_id), CONSTRAINT cost_nn NOT NULL(cost), CONSTRAINT FOREIGN KEY (manufacturer_id) REFERENCES manufacturer(id)); 哪一行会导致产生错误()A 6B 7C 8D 9

考题 单选题The PRODUCTS table has these columns: PRODUCT_ID NUMBER(4) PRODUCT_NAME VARCHAR2(45) PRICE NUMBER(8,2) Evaluate this SQL statement: SELECT * FROM PRODUCTS ORDER BY price, product _ name; What is true about the SQL statement? ()A The results are not sorted.B The results are sorted numerically.C The results are sorted alphabetically.D The results are sorted numerically and then alphabetically.

考题 单选题In the data model you created this query: SELECT ID_no, description, price, quantity, manufacturer_ID FROM inventory Next you click and drag the manufacturer_ID column out of and above the default group. You needed to sort the child group by ID_number. How could you accomplish this task? ()A Add an order by clause to the query. B In the data model double click the ID_number column and alter the break order. C In the layout model double click the ID_number filed and later the print direction. D Default the layout, choose a master/detail report style and select ID_number as the break order.