|
Fall Semester 2002
|
Lab Fourteen: Wrapping things up.
Problem 1. We will be listing comments to the individual user views:
- Director is an independent entity, and the features (attributes) are listed.
- Notice that one attribute could be NULL (as in the case of the sample practical).
- Movie is an independent entity with the listed attributes.
- Movies and Directors are related. Additional attributes are listed for the Movies.
- Among these attributes there's also an indication repeating groups could be used.
- With the repeating groups one could relate Movies and Directors.
- Actors are just another entity. Some attributes are listed.
- Movies are related to Actors too. How do we do that?
- (Of course the answer is that we use repeating groups for each MovieNum).
- At each stage we need to normalize and merge tables.
- Some user vies are going to be redundant. See User View 6 on Page 191.
- Still, one needs to verify all User Views, and carefully mark them as implemented.
For this problem we end up with (possibly) the following tables:
- Director
- Movie
- Actor
- Movie-Actor
Note that
- there's always only one Director per Movie, but
- seldom only one (or less) actor(s) per Movie.
(Also: these are only ideas, your design may vary).
Problem 2. With this problem (regarding memberships) we approach entity subtypes.
- Entity subtypes are described on pages 208 and following.
- There's really nothing extra special about them.
- Then there are also some attributes of members, which are listed.
- But other than that the rest is simply vanilla.
- (That means lacking pizzazz and/or basically plain, ordinary).
- So there's another entity, call it DVD, with some attributes...
- ... and that's about it.
To summarize, one might have to add two tables:
- Member, and
- Tape (or DVD)
Please indicate with care all the FK's.
Last updated: Oct 23, 2002 by Adrian German for A114/I111