1 / 13

Practice of ER modeling - Answer

Practice of ER modeling - Answer. Yong Choi School of Business CSUB. Practice 1. A department hires many employees . A employee is hired by one department. A manager manages one department. A department is managed by one manager. . Practice 2.

marcus
Télécharger la présentation

Practice of ER modeling - Answer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Practice of ER modeling - Answer Yong Choi School of Business CSUB

  2. Practice 1 • A department hires many employees. A employee is hired by one department. • A manager manages one department. A department is managed by one manager.

  3. Practice 2 • An author writes many books. A book is written by many authors. • A team consists of many players. A player plays for only one team.

  4. Practice 3 • A part-time lecturer teaches one course. A course is taught by exactly one part-time lecturer. • A flight-hub connects several airports. An airport is used by many flight-hubs.

  5. Practice 4 • A purchase order may be for many products. A product may appear on many purchase orders. • A customer may submit many orders. An order is for exactly one customer.

  6. Practice 5 • Refine business rules (BR) • A college has a large number of professors. Each professor may belong to one or several colleges in one university. In some cases, a professor may not belong to any college at all.

  7. Practice 6 (develop BR) • Eliminate unnecessary information and refine BR • The California State University has changed one of the policies about course schedule based upon feedback from professors and students. One of the changed policies is that a course may have one or more scheduled sections, or may not have a scheduled section. Each section has one course or may not have any course at all.

  8. Practice 7 • Eliminate unnecessary information and refine BR • According to the policy of the California Hospital, a patient must have a patient record. In other words, each patient may have one or more records.Each patient record must belong to exactly one patient.

  9. Practice 8 • Since the growth rate of the California video store is very fast, the store has decided to change the inventory management policy. One of the policy is that a video store may stock more than one copy of a given movie and only one copy of a given movie can belong to one video store.

  10. Practice 9 – Multiple Entities • CSUB is the only 4 years comprehensive university in Kern County. Each class offered by CSUB may be taught by several professors. A particular class may always uses the same room. Because classes may held at different times or on different evenings, it is possible that each room is used by many different classes. By the way, A professor can teach several classes.

  11. Practice 10 – Multiple Entities • There are several departments in each school at CSUB. Each department belongs to one school. A department has many professors, but a professor may belong to more than one department. Similarly, courses may be offered by several departments and a department must have at least one course. A professor may teach more than one student, and a student may have more than one professor.

  12. Practice 11 – Multiple Entities • Each employee in an engineering company has one recognized skill (e.g., mechanic, electrician), but a given skill may be possessed by several employees. An employee must be able to operate a given machine-type (e.g., milling machine, grinder). If any employee has one of several skills, each skill must be associated with the operation of only one machine type. Possession of a given skill (e.g., mechanic, electrician) allows an employee to maintain several machine-types. On the other hand, maintenance of any given machine-type requires a specific skill (e.g., a milling machine must be maintained by a mechanic).

  13. Practice 12 – Recursive Relationship • In our company, we have several departments with more than 1000 employees. Each department is managed by one person, and must have a manager all the time by our corporate regulations. We would like to keep the following information on each department: department ID, department name, budget, and location. Each employee is supervised directly by one person, but each supervisor can manage many supervisees. As for employees, we would like to keep the following information: employee id, employee name, address, salary. Since data management of our company is becoming so complex, we plan to develop a database system to manage our current data requirements described here.

More Related