• 2022-07-01
    订单表tb_order包含用户信息uid和产品信息pid等属性列,以下语句能够返回至少被订购过三次的pid是()。
    A: SELECT
    pid FROM tb_order WHERE count(pid)>3;
    B: SELECT
    pid FROM tb_order WHERE max(pid)>=3;
    C: SELECT
    pid FROM tb_order GROUP BY pid HAVING COUNT(pid)>3;
    D: SELECT
    pid FROM tb_order GROUP BY pid HAVING COUNT(pid)>=3;
  • 举一反三