Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ERD

Posted on 2007-04-06
4
Medium Priority
?
1,518 Views
Last Modified: 2012-08-14
ERD ..i was hoping to get some suggestions and point of view and/or tips if this ERD made sense the way i created it.

Entity:
Movie: Actor, customer, Director, Rating Organization, Cinema.

Relationships:
One or more actors appear in  one or more movies.
Director creates one or more movie while movie is directed by one or more directors
Customer watches one or more movies while a movie is watched one or more customer.
Movie is rated by a rating organization while an independent organization rates one or more movies.
Movie is played in many cinema while cinema plays one movie at a time

Cardinalities:
An actor has 1:M relationship with movie
Director  has  1:M relationship with movie
a customer has 1:M relationship with movie
rating organization has 1:M relationship
 cinema has 1:M relations
Primary Keys:


MovieID
ActorID
ROrID
AwardID
CusID
DirID

Foreign Key:
Within Movie entity I have Foreign Keys as
ActorID
ROrID
AwardID
CusID
DirID

0
Comment
Question by:shoris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 18864254
download this sample from M$

http://office.microsoft.com/en-us/templates/TC010186441033.aspx?pid=CT102144001033

look how the table relationship is set
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 2000 total points
ID: 18864323
Obviously plenty of many to many
you need to break this down and create junction tables

How are you tables setup now?

Something like this?


Movie (MovieID, Name, etc)
Actor (ActorID, etc)
Customer (CustomerID, etc)
Director (DirectorID, etc)
Rating (RatingID, etc)
Organisaton (OrgID,etc)
Cinema (CinemaID, etc)


To define a movie then u would have multiple rows cos of the many actors, directors etc

eg

MovieActor (MovieID - link to table Movie, ActorID - link to table Actor)

MovieDirector (MovieID, DirectorID)


You can have it as one table i.e.
actorid, directorid, etc

But I suggested to split it up so as to remove duplicate data

How does that sound?
0
 

Author Comment

by:shoris
ID: 18864359
I can't load it because i have used up my winzip eval for now.. :( the download is winzip
0
 

Author Comment

by:shoris
ID: 18864370
Thanks rockiroads:.. I will split up .. your right.. to avoide the duplicate data.. Thanks again.. so much.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question