sql groub by count
snippet in sql

sql count distinct group by

user1167

SELECT COUNT(DISTINCT program_name) AS Count,
  program_type AS [Type] 
FROM cm_production 
WHERE push_number=@push_number 
GROUP BY program_type

sql groub by count

user9610

SELECT COUNT(Id), Country 
  FROM Customer
 GROUP BY Country