Vous êtes sur la page 1sur 1

a) At a small auto parts store, customers can buy many parts.

And the same part can be bought by many different customers. Draw an ERD for this. b) In conjunction with taking an introductory computer concepts course, your school has decided to test the idea of offering weekend seminars to cover the basics of Internet and the Web. Initially, your school will offer two such seminars: Web101 (The Basics of Web & Internet) and Web205 (Building a Website). Web101 will have five different sessions, that is, Web101-1 through Web101-5, and Web205 will have four different sessions, that is, Web205-1 through Web205-4. Although they are not required to, students can enrol in one or both seminars. The seminars are held for eight hours on a single day. There is no cost associated with taking the seminars. One teacher, from a pool of qualified teachers, will be assigned to each session of each seminar. Some teachers will obviously not be assigned to teach any sessions, and some teachers may be assigned to several different sessions. Finally, the system should track the final grade assigned to each student. c) You have an internship with local animal shelter. The shelter provides temporary home to cats and dogs. They know that you have studied management, so they want you to make a database. The database is needed for several reasons. First, the shelter wants to track those who adopt pets from the shelter so that thank you letters can be sent. Along with thank you is a request for donations. Second, the shelter wants to track how many cats and dogs are adopted during a period of time, such as by month or year, so they can measure their success at encouraging pet adoption. Third , the shelter wants to determine how many animals have been adopted by the same person. The shelter only lets a person adopt an animal if they have not adopted an animal from the shelter in the last three months. Adopters are identified by household. You have decided to use the phone number of the household as a way to uniquely identify each one. Pets are identified by a tag number, such as D217 (for dog number 217) and C142 (for cat 142). A pet can only be adopted by one household, but a household may adopt more than one pet. Design the database (ER diagram) for the above situation.

Vous aimerez peut-être aussi