Consider I have a below table name "temp"
id | name
-----+-------
1 | AAA
2 | BBB
3 | BBB
Am getting the count of the names with below query
SELECT name , count(*) FROm temp where name IN ('AAA','BBB','CCC') group by 1
When I execute the query I got the below output
name | count
------------+-------
AAA | 1
BBB | 2
But I need the below output
name | count
------+-------
AAA | 1
BBB | 2
CCC | 0
How to get this output???