Rating change from the previous release
hard
For the movies of director 1 in release order (ties by movie id) return the title, the release year and the change in rating from the previous movie of that director (NULL for the first), rounded to 1 decimal. Order by release year, then by movie id.
Tables Movies
- directorsid, name, country
- moviesid, title, release_year, genre, rating, runtime, box_office, director_id
- reviewsid, movie_id, reviewer, stars, review_date
Concepts
- lag
Run shows your result on the sample data. Submit also runs the query on 2 other sets of data, so it has to be right in general: with ties, missing values (NULL) and rows that have nothing to join to.
Query
MoviesCtrl or Cmd + Enter runs it
Nothing run yet
Press Run to see your result on the sample data and compare it with the expected output. Submit checks it on the other data too.