SQL语句分组并统计

SELECT coalesce(name, '总数'), SUM(singin) as singin_count FROM  employee_tbl GROUP BY name WITH ROLLUP

 

你可能感兴趣的:(SQL,分组统计)