I am trying to write a SQL query where I have to select title, year and take the movie cost and divide by the price rent fee for each movie that has a price.
PRICE to MOVIE entity is a 1:M, therefore PRICE_CODE is the FK in entity MOVIE.
This is what I have gotten so far but it keep stating that my operator is invalid.
Can anyone help?
SELECT movie_title, movie_year, movie_cost
FROM MOVIE
JOIN PRICE
ON movie.price_code = price.price_code
WHERE (movie_cost)/(price_rentfee);