I have to execute multiple queries that go like:
select count(*) from table_name where product = 'abc';
select count(*) from table_name where product = 'bcd';
...
I have around 2000 such statements and executing one by one seems tedious. How can I execute them in one go and get the result in the form of some table?
Thanks
SELECT product, COUNT(product) FROM TableName GROUP BY product