sql语句:查询分组统计并计算每组数量

select phone,count(order_id) as c from table_record

group by phone

order by c desc

    原文作者:SQL
    原文地址: https://blog.csdn.net/fgx_123456/article/details/78959231
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞