There are two tables in the database. First places places (idPlace, name, date) second comments - comments to it (id, autor, text). The task is to create a request that displays a list of establishments, counting the number of comments.
Made up such ...
SELECT idPlace, name, date, COUNT(*) FROM places JOIN comments places.idPlace = comments.id GROUP BY idPlace ... but the trouble is that comments are not for all establishments. And accordingly, they are not issued in the request. How to fix?
Ps Should I use such troubles or is it better to just insert another short request for the number of comments in a loop (in php)?