当前位置:首页 > WEB/数据库等一大坨 > 正文内容

. 以下哪句分组统计查询语句可能正确

. 以下哪句分组统计查询语句可能正确

A.. select a1,sum(a3) from ab where a2>0 and count(1)>1 group by a1;

B.. select a1,sum(a3) from ab group by a1 having a2>0 and count(1)>1;

C.. select a1,sum(a3) from ab where a2>0 and count(1)>1 group by a1;

D.. select a1,sum(a3) from ab where a2>0 group by a1 having count(1)>1;

正确答案是D

扫描二维码免费使用微信小程序搜题/刷题/查看解析。

版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。

本文链接:https://20230611.cn/post/8655585.html