Assignment
Assignment
INTERNATIONAL TAXATION - 1
COURSE ID: MBA233F3
Contents
I. 3
II. 4
III. 8
BRIEF INTRODUCTION ABOUT THE DATABASE
(WRITE NOT MORE THAN 300 WORDS)
This database is structured to store and manage essential information about movies,
directors, actors, and their interconnections. Its primary entities include Movies,
Directors, and Actors, supplemented by an Acts table that represents the many-to-
many relationship between actors and movies.
The Movies table records details such as movie titles, release years, ratings, and the
directors responsible for each film. The Directors table captures information about
directors, including their names and birth years, establishing a direct link between
movies and their creators. The Actors table maintains records of actors' names and
birth years, while the Acts table connects actors to the movies they have appeared in
capturing these collaborative relationships.
This relational structure enables a variety of queries, such as identifying all movies by
a specific director, listing the actors featured in a particular film, or filtering data based
on criteria like ratings or birth years. An Entity-Relationship (ER) Diagram illustrates
these relationships, enhancing understanding and aiding in the creation of efficient
queries while minimising data redundancy. By defining explicit connections between
entities, such as linking movies to directors and actors, the diagram ensures data
integrity and supports complex queries.
This design facilitates insightful analyses, such as determining which directors worked
on movies released after a certain year, identifying collaborations between actors and
directors, or pinpointing top-rated films. The database serves as a valuable tool for
analysing trends in the film industry, uncovering significant collaborations, and
exploring patterns in successful movies. Overall, it organises movie-related data
systematically and enables efficient querying for actionable insights.
II. a. CREATE THE ER DIAGRAM IN ACCESS
Find directors and movie titles where rating was greater than 7.5
Query:
SELECT Director, Title, Rating
FROM Movies
WHERE Rating > 7.5 ;
Output:
Find the directors and actors who were born before 1960.
Query:
SELECT DISTINCT Directors.director, Actors.actor
FROM Directors, Actors
WHERE Directors.dyear < 1960
AND Actors.ayear < 1960 ;
Output:
Find the minimum ratings obtained for a movie.
Query:
SELECT MIN(Movies.rating) AS Min_Rating
FROM Movies ;
Output: