AVG + Inner join
问题 I'm trying to make something like a chart list and my actual query is like this: SELECT user.username, songs.*, albums.desc, albums.release, albums.name, AVG(songrating.rating) FROM songs INNER JOIN user ON songs.userid=user.id INNER JOIN albums ON songs.albumid=albums.id INNER JOIN songrating ON songs.id=songrating.songid GROUP BY songrating.songid it only shows entries with at least one rating entry, but I also want these without a rating I tried to use it with if / case but it doesn't work