• 2022-06-08
    有订单表orders, ,包含用户信息userid, 产品信息productid,以下能够返回至少被订购过两次的productid的SQL语句是()
    A: select productid from orderswhere count(productid)>1;
    B: select productid from orderswhere max(productid)>1;
    C: select productid from orderswhere having count(productid)>1group by productid;
    D: select productid from ordersgroup by productidhaving count(productid)>1;
  • 举一反三