请问在一道SQL题?
36、现有订单表orders,包含用户信息userid,产品信息productid,以下()语句能够返回至少被订购过两回的productid?(选择一项)a)select...
36、现有订单表orders,包含用户信息userid, 产品信息 productid, 以下()语句能够返回至少被订购过两回的productid? (选择一项)
a) select productid from orders where count(productid)>1
b) select productid from orders where max(productid)>1
c) select productid from orders where having count(productid)>1 group by productid
d) select productid from orders group by productid having count(productid)>1
请问这道题的答案是什么?请解释一下?谢谢了! 展开
a) select productid from orders where count(productid)>1
b) select productid from orders where max(productid)>1
c) select productid from orders where having count(productid)>1 group by productid
d) select productid from orders group by productid having count(productid)>1
请问这道题的答案是什么?请解释一下?谢谢了! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询