Professional Documents
Culture Documents
ECX5240 Mini Proj2011
ECX5240 Mini Proj2011
ECX5240 Mini Proj2011
d) Display the names oI stars who have acted in 5 or more movies in any year between 2006
and 2011. Display the names without duplicates.
e) It has been decided to introduce a rating system Ior the movie stars. A star gets one point Ior
each support role and no points Ior any other roles. Do the Iollowing to implement it.
i. To the MovieStar table, add a new attribute named rating oI Iloat type with a deIault
value oI zero.
ii. Write a T-SQL procedure to update the rating oI all movie stars.
iii. Write a trigger to update the rating whenever a new tuple is added to the StarsIn
table.
Note: It is important to attached snapshots oI your own work to the report oI this work.
Help: http://www.roseindia.net/mysql/mysql5/index.shtml