单项选择题X 纠错
A.select cid,count(distinct(cid)),sum(money) from orders group by cid
B.select cid,count(distinct(cid)),sum(money) from orders order by cid
C.select cid,count(cid),sum(money) from orders order by cid
D.select cid,count(cid),sum(money) from orders group by cid
你可能喜欢
单项选择题
A.Image数据类型可以用来存储图像。
B.使用字符数据类型时,可以改变长度信息。
C.使用数字数据类型时,可以改变长度信息。
D.Bit数据类型为1位长度,可以存储表示是/否的数据。
单项选择题
A.插入失败,sql语句有错
B.插入成功,author列的数据是UNKNOW
C.插入成功,author列的数据是NULL
D.插入成功,author列的数据是50
单项选择题
A.Select*into customers from clients
B.Select into customers from clients
C.Insert into customers select*from clients
D.Insert customers select*from clients
单项选择题
A.错误提示:orderby子句中不能出现表达式。
B.正确执行,显示grade表中各列值,按照score由低到高排序。
C.正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。
D.错误提示:where子句中不能出现表达式。
单项选择题
A.付款方式不能是信用卡。
B.付款方式不能是信用卡,或者信用卡是阳光卡。
C.如果付款方式是信用卡,那么信用卡不能是阳光卡。
D.付款方式是信用卡,并且信用卡不能是阳光卡。
多项选择题
A.Truncate table可跟Where从句,根据条件进行删除。
B.Truncate table用来删除表中所有数据。
C.触发器对Truncate table无效。
D.delete比Truncate table速度快。
多项选择题
A.01053090A
B.01003090A01
C.01053090D09
D.0101A01
单项选择题
A.外联接查询返回的结果集行数可能大于所有符合联接条件的结果集行数。
B.多表联接查询必须使用到JOIN关键字
C.内联接查询返回的结果是:所有符合联接条件的数据。
D.在where子句中指定联接条件可以实现内联接查询。