I have a table products, and each product has a specific brand.
What I want to do is to count the times a specific brand has appeared and, together, show the unique product it has.
For example:
Table products
ID, ProductName, Brand
1, TV, Samsung
2, TV, Sony
3, TV, Samsung
4, Phone, Sony
The query should result:
ProductName, Brand, Count
TV, Samsung, 2
TV, Sony, 1
Phone, Sony, 1
Can you help?
Sorry I'm writing on a phone and on the bus that's why I didn't specify but please feel free to ask if you didn't understand.