Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2012

    ER modeling help


    I've been reading the site for a few weeks now and picking stuff up for a class I'm taking but I sorta stuck.

    Here is a copy of the assignment:

    In this project you will be provided a set of specifications to create an entity-relationship diagram and design accompanying table layout using sound relational modeling concepts and practices. The relationships between the entities and the attributes for the entities will be identified and described. This database will provide the foundation for the follow-on project. The following paragraphs provide the background and summary of the business requirements.

    You are a database consultant with Ace Software, Inc. and have been assigned to develop a database for the Mom and Pop Johnson video store in town. Mom and Pop have been keeping their records of videos and DVDs purchased from distributors and rented to customers in stacks of invoices and piles of rental forms for years. They have finally decided to automate their record keeping with a relational database.
    You sit down with Mom and Pop to discuss their business, and watch their operation for about a week. You discover quickly that a video and a DVD are both copies of a movie kept in a separate plastic case that is rented out. They have several copies of each movie they rent; therefore there are several videos and DVDs for each movie title. You learn that in their inventory they have several thousand videos and DVDs, which they get wholesale from about a half dozen distributors. The video and DVD prices to them are based on the quantity of their shipment and the past business they have done with each company.

    The price of a DVD for a movie might be different than the price of a video for the same movie, even from the same distributor. Each distributor provides different types of movies (e.g., suspense, horror, mystery, comedy, etc.). A single distributor may provide several different types of movies in both video and DVD format. It is possible to obtain the same movie from multiple distributors, and at different wholesale prices.

    Each video and DVD has a unique identification number that Mom and Pop assign in their inventory, in addition to the distributor's serial number for the item. Each movie also has a unique identification number Mom and Pop assign in addition to the title, and any movie IDs the distributors use in their electronic catalogs. Distributors provide electronic catalogs to Mom and Pop and the information from these catalogs must be included in the database.

    Mom and Pop need to record when a video or DVD is rented, when a video or DVD is returned, and all customer charges such as late and damaged fees, failure to rewind fees, and taxes. They need a report of which videos are returned late because there are standard and late charges. On occasion there are discount prices for certain movies or types of movies. Customers want to rent movies based on actors or actresses, running length, type of movie, rating, year released, the director, and the academy awards won (by the movie, the actors, the actresses and/or the directors). Customers also want to know how many videos they have rented in the last month, year, and so forth. Mom and Pop need to keep only basic information on customers in their database, such as name, address, telephone numbers, etc.

    There must be no limit to the number of video and/or DVD copies of a movie that Mom and Pop can have in their inventory. Video/DVD ID numbers, movie ID numbers, and distributor ID numbers for videos, DVDs, and movies are all different. Also, each movie must be able to have an unlimited number of actors, actresses, directors, and academy awards (i.e., Oscars). Other types of awards (e.g., Golden Globe, People's Choice, etc.) are not of interest for this application. The rental of equipment, sale of videos, DVDs, popcorn, etc., is not to be kept in the database.

    My problem at this point is I'm not even sure what the main entities should be. I feel like I'm trying to over think the issue because this is only the second ER model I have made.

    From reading it I think distributor should be an entity but I don't know how to relate it both the movie and the sale price. If anyone has any suggestions I would appreciate it. I don't think there is one particular way to do it this but I don't want to over complicate it.

  2. #2
    Join Date
    Apr 2002
    Toronto, Canada
    Quote Originally Posted by Calcos View Post
    ... I don't want to over complicate it.
    right now you are severely under complicating it

    so far you've identified only distributor as an entity

    try coming up with just a bit more that we can comment on, because we aren't going to do your assignment for you | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Feb 2012
    You are right, I should of posted this picture. Sorry about that. While I would like someone to do my homework I actually would like some idea what I'm doing.

    I really have two questions. The first being how do I properly model the format of the movie (dvd/vhs) and is the way I handled the rental/return with sales and fees ok?

    If there are other things wrong I would appreciate any help.

    Thank you!
    Attached Thumbnails Attached Thumbnails Attempt1.jpg  

  4. #4
    Join Date
    Jul 2012
    Just go and do the assignment for him.

  5. #5
    Join Date
    Oct 2009
    221B Baker St.
    Rather weak for a first reply on the forum . . .

    And to a topic that has been happily dormant for about 1/2 a year . . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts