Smarter than I used to be, but not smart enough yet.
I have two tables. One lists videos. The second contains people's ratings of those videos. I need a query that will display all videos and their average rating. I managed to get one that almost works. My snag came because some videos have no ratings yet and as a result are excluded from the recordset. Any ideas on how I can return all videos those with and without ratings. Here is the code that I used to get me as far as I am:
SELECT Video.NameID, Video.Name, Avg(Ratings.Rating) AS AvgRating FROM Video INNER JOIN Ratings ON Video.ID = Ratings.ID WHERE Video.NameID>100 GROUP BY Video.ID, Video.Name
I have two tables. One lists videos. The second contains people's ratings of those videos. I need a query that will display all videos and their average rating. I managed to get one that almost works. My snag came because some videos have no ratings yet and as a result are excluded from the recordset. Any ideas on how I can return all videos those with and without ratings. Here is the code that I used to get me as far as I am:
SELECT Video.NameID, Video.Name, Avg(Ratings.Rating) AS AvgRating FROM Video INNER JOIN Ratings ON Video.ID = Ratings.ID WHERE Video.NameID>100 GROUP BY Video.ID, Video.Name