We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9
ER Diagram
A hospital has a large number of registered physicians. Attributes of
PHYSICIAN include Physician_ID (identifier) and Specialty.Patients are admitted to the hospital by physicians. Attributes of PATIENT include patient_ID (identifier) and patient_name. Any patient admitted must have exactly one admitting physician. A physician may admit any number of patient. or may not admit any patients. Once admitted,a given patient must be treated by at least one physician.A particular physician may treat any number of patients or may not treat any patients. Whenever a patient is treated by a physician,the hospital records the details of the treatment (Treatment_Detail).Components of Treatment_Detail include,Time,and Results. A college course may have one or more scheduled sections, or may not have a scheduled section. Attributes of COURSE include Course_ID (identifier), name, and Credits. Attributes of SECTION include Section_ID (identifier), and Semester_ID (A composite attribute consisting of Semester and Year). A laboratory has several chemists who work on one or more projects. Chemists also may use certain kinds of equipments on each project. Attributes of CHEMIST, PROJECT and EQUIPMENT are: CHEMIST : Name, Phone, EmpID. PROJECT : ProjID, StartDate. EQUIPMENT : SerialNo, Cost. The organization wishes to record Assign_Date .i.e. the date when an equipment item was assigned to a particular CHEMIST working on a specific PROJECT. A CHEMIST must be assigned to at least one PROJECT and one EQUIPMENT item. An equipment item need not be assigned to either CHEMIST or PROJECT. A PROJECT need not be assigned to either a CHEMIST or an EQUIPMENT item. A company has a number of employees. The attributes of EMPLOYEE include Employee_ID (identifier), Name, Address (A composite attribute), and birthdate. The company also has several projects. Attributes of PROJECT include Project_ID (identifier), Project_name, and Start_Date. Each employee may be assigned to one or more projects, or may not be assigned to a project. A project must have at least one employee assigned to it, and may have many employees assigned to it. An employee’s billing rate may vary by project, and the company wishes to record the applicable billing rate (Billing_Rate) for each employee when assigned to a particular project.