Unknown column while using alias mysql
问题 I am following SQL course from lagunita.satnford.edu . I am doing an exercise on practising queries, i have three tables: Movie ( mID, title, year, director ) Reviewer ( rID, name ) Rating ( rID, mID, stars, ratingDate ) Problem Statement: Find the difference between the average rating of movies released before 1980 and the average rating of movies released after 1980. (Make sure to calculate the average rating for each movie, then the average of those averages for movies before 1980 and