其他分享
首页 > 其他分享> > OCP 071【中文】考试题库(cuug整理)第38题

OCP 071【中文】考试题库(cuug整理)第38题

作者:互联网

本套题库是OCP考试中的071(中文版)试题,由CUUG整理,如有报考OCP认证意向,可以联系cuug咨询老师。

38、请选择两项。

SALES表具有数据类型为NUMBER的PROD_ID 和QUANTITY_SOLD 列。

哪两个查询将成功执行?

A) SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY prod_id HAVING COUNT(*) > 10;

B) SELECT COUNT(prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id;

C) SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold > 55000;

D) SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id HAVING COUNT(*) > 10;

E) SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY COUNT(*) > 10;

27411880127.jpg

标签:cuug,COUNT,38,GROUP,071,prod,id,SELECT,55000
来源: https://blog.51cto.com/u_13854012/2888065