Movie Database
Movie Database
select act_name
from actor a join movie_cast mc on a.act_id = mc.act_id
join movies m on mc.mov_id = m.mov_id
where m.mov_year<2000
Intersect
select act_name
from actor a join movie_cast mc on a.act_id = mc.act_id
join movies m on mc.mov_id = m.mov_id
where m.mov_year>2015;
4. Find the title of movies and number of stars
for each movie that has at least one rating and
find the highest number of stars that movie
received. Sort the result by movie title.
select mov_title,max(rev_stars)
from movies m, rating r
where m.mov_id = r.mov_id
group by (m.mov_title,m.mov_id)
order by m.mov_title;
5. Update rating of all movies directed by ‘Steven
Spielberg’ to 5