0
I have two tables in Mysql like this:
LOCAL
id | nome
NOTA_LOCAL (user notes for each location)
id | id_local | nota
I’m listing the locations and already showing the average of notes that each location receives, so:
SELECT *, AVG(local_nota.nota) AS 'nota' FROM local
LEFT JOIN local_nota ON local.id = local_nota.id_local
GROUP BY local_nota.id_local
ORDER BY local.nome ASC
The places that have notes he lists but does not list the places that have not yet received notes, what to change in the code?
It would be good to mark how you accept your solution so that the post is not open indefinitely
– Bacco