I need help developing an algorithm for movie recommendations.
Each user of the system evaluates films with a score of 1-100.
Tables consist of:
Table Movies ID Name Year Rating Runtime Table Con_MoviesToGenres MovieID GenreID Table Con_MovieToUser MovieID UserID Grade
I am trying to build a SELECT query to return the 5 most recommended films for a specific movie.
Whereas, I want to somehow integrate similar genres, top grades and movie ratings (so you need to recommend an R-rated movie for a PG-rated movie, unless that is recommended in any other way). In addition, if a film matches several genres, it will increase the recommendation rate.
Bonus: if the user gives a low rating to the film β he will lose the ratio of recommendations.
Update: I meant one user and one header. Whenever the user enters the "movie page" - he will receive recommendations for other films that he may like.
algorithm sql
Faruz
source share