Hi everybody,
I have the following query in my application. It works well, but I need it to also contain the number of products that are associated with each manufacturer.
The current query:
SELECT * FROM (`manufacturers`)
JOIN `languages` ON `manufacturers`.`lang` = `languages`.`id`
ORDER BY `languages`.`id` asc, `id` asc
My products table looks like this:
id | name | manufacturerid
0 | Product1 | 0