Professional Documents
Culture Documents
2. Find the movie names where one or more actors acted in two or moremovies.
3. List all actors who acted in a movie before 2000 and also in a movie after 2015(use JOINoperation).
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.
Act_id varchar(3),
Act_name varchar(10),
Act_gender varchar(1),
primary key(Act_id)
);
Dir_id varchar(3),
Dir_name varchar(20),
Dir_phone varchar(10),
primary key(Dir_id)
);
Mov_id varchar(3),
Mov_title varchar(20),
Mov_year int,
Mov_lang varchar(10),
Dir_id1 varchar(3),
primary key(Mov_id),
);
Act_id varchar(3),
Mov_id varchar(3),
Role varchar(10),
);
Mov_id varchar(3),
Rev_stars int,
);
Insertion Of Values To the Tables:
select Mov_title
from MOVIES
2. Find the movie names where one or more actors acted in two or more movies.
3. List all actors who acted in a movie before 2000 and also in a movie after 2015(use
JOINoperation).
JOIN MOVIE_CAST c
ON a.Act_id=c.Act_id
JOIN MOVIES m
ON c.Mov_id=m.Mov_id
group by Mov_title
order by Mov_title;
from MOVIES
from DIRECTOR
(2 row(s) affected)