Professional Documents
Culture Documents
go
go
go
--2) Create a view called v2Movie which will have for each actor by actor id, a count of the
movies that they have appeared in
-- and the total number of nominations and awards those movie received
go
go
go
--3) Create a view called V3Movie that will show a count of lead actor roles
-- for each actor, by actor id.
go
go
go
--4) List the details for the actor that has had the highest number of lead roles
--5) List the actor details for the actor whose movies he has appeared in have the highest total of
awards
SELECT A.* FROM V2Movie V2 INNER JOIN Actor A
on A.ActorId = V2.ActorId
WHERE TotAwrds =
(SELECT MAX(TotAwrds) FROM V2Movie)
--6) List the movie details for any movie whose category has above the average number of
awards for that same category
--7) List the details of any member renting a movie in the category with the highest count of
movies. Show each member details only once.