CSC253 Information Technology Systems

advertisement
CSC253 Information Technology Systems
Homework 3 (Due: Monday, October25th, 2010)
Homework SHOULD BE TYPED for submission.
Q1. Consider a database system that maintains information about someone who loves to
watch and analyze movies. This person wants to keep track of all of the movies that
he has seen and associate a rating (one to four stars) with each review. On occasion,
he wants to write a review and keep that in the database.
a. What information about each movie should be kept in the database? Give an
example of the information for a particular movie.
b. What information should be kept in the database to record the viewing of a
movie? Give an example.
c. Give an example of a report that could be created from this information that
shows some aspect of the person’s viewing tendencies.
Q2. Exercise 2.3 (pp52-53)
Be sure to indicate followings for your ER diagram: Entities, relationships, attributes,
key, connectivity, cardinality (use (min, max) notation), and optional (or
mandatory).
For the followings, you don’t need to submit anything.
Just do these for your own benefits.
Q3. Explain the following terms briefly: attribute, domain, entity, relationship, entity set,
relationship set, one-to-one relationship, one-to-many relationship, many-to-many
relationship, weak entity set.
Q4. Design an E-R diagram for the operation of your local community library. Be sure to
indicate followings for your ER diagram: Entities, relationships, attributes,
key, connectivity, cardinality (use (min, max) notation), and optional (or mandatory).
The library has books, CDs, tapes, and so forth, which are lent to library patrons.
The latter have accounts, addresses, and so forth. If a loaned item is overdue, it
accumulates penalty. Some patrons are minors, so they must have sponsoring
patrons who are responsible for paying penalties (or replacing a book in case of a
loss).
Download