Top-Rated Free Essay
Preview

Er Diagrams

Good Essays
887 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Er Diagrams
Exercise 1. Consider the following information about a university database: * Professors have an SSN, a name, an age, a rank, and a research specialty.

* Projects have a project number, a sponsor name (e.g., NSF), a starting date, an ending date, and a budget.

* Graduate students have an SSN, a name, an age, and a degree program (e.g., M.S. or Ph.D.)

* Each project is managed by one professor (known as the project’s principal inves- tigator). * Each project is worked on by one or more professors (known as the project’s co-investigators). * Professors can manage and/or work on multiple projects.

* Each project is worked on by one or more graduate students (known as the project’s research assistants).

* When graduate students work on a project, a professor must supervise their work on the project. Graduate students can work on multiple projects, in which case they will have a (potentially different) supervisor for each one.

* Departments have a department number, a department name, and a main office.

* Departments have a professor (known as the chairman) who runs the department.

* Professors work in one or more departments, and for each department that they work in, a time percentage is associated with their job.

* Graduate students have one major department in which they are working on their degree. * Each graduate student has another, more senior graduate student (known as a student advisor) who advises him or her on what courses to take.

* Design and draw an ER diagram that captures the information about the university.

Use only the basic ER model here; that is, entities, relationships, and attributes. Be sure to indicate any key and participation constraints.

Exercise 2. Notown Records has decided to store information about musicians who perform on its albums (as well as other company data) in a database. The company has wisely chosen to hire you as a database designer (at your usual consulting fee of
$2500/day).

* Each musician that records at Notown has an SSN, a name, an address, and a phone number. Poorly paid musicians often share the same address, and no address has more than one phone.

* Each instrument used in songs recorded at Notown has a unique identification number, a name (e.g., guitar, synthesizer, flute) and a musical key (e.g., C, B-flat,
E-flat).

* Each album recorded on the Notown label has a unique identification number, a title, a copyright date, a format (e.g., CD or MC), and an album identifier.

* Each song recorded at Notown has a title and an author.

* Each musician may play several instruments, and a given instrument may be played by several musicians.

* Each album has a number of songs on it, but no song may appear on more than one album.

* Each song is performed by one or more musicians, and a musician may perform a * number of songs.

* Each album has exactly one musician who acts as its producer. A musician may produce several albums, of course.

Exercise 3. The Prescriptions-R-X chain of pharmacies has offered to give you a free lifetime supply of medicine if you design its database. Given the rising cost of health care, you agree. Here’s the information that you gather:

* Patients are identified by an SSN, and their names, addresses, and ages must be recorded. * Doctors are identified by an SSN. For each doctor, the name, specialty, and years of experience must be recorded.

* Each pharmaceutical company is identified by name and has a phone number.

* For each drug, the trade name and formula must be recorded.

* Each drug is sold by a given pharmaceutical company, and the trade name identifies a drug uniquely from among the products of that company.

If a pharmaceutical company is deleted, you need not keep track of its products any longer. * Each pharmacy has a name, address, and phone number.

* Every patient has a primary physician.

* Every doctor has at least one patient.

* Each pharmacy sells several drugs and has a price for each. A drug could be sold at several pharmacies, and the price could vary from one pharmacy to another.

* Doctors prescribe drugs for patients. A doctor could prescribe one or more drugs for several patients, and a patient could obtain prescriptions from several doctors.
Each prescription has a date and a quantity associated with it. You can assume that, if a doctor prescribes the same drug for the same patient more than once, only the last such prescription needs to be stored.

* Pharmaceutical companies have long-term contracts with pharmacies. A phar- maceutical company can contract with several pharmacies, and a pharmacy can contract with several pharmaceutical companies. For each contract, you have to store a start date, an end date, and the text of the contract.

* Pharmacies appoint a supervisor for each contract. There must always be a super- visor for each contract, but the contract supervisor can change over the lifetime of the contract.

1. Draw an ER diagram that captures the preceding information. Identify any con- straints not captured by the ER diagram.
2. How would your design change if each drug must be sold at a fixed price by all pharmacies? 3. How would your design change if the design requirements change as follows: If a doctor prescribes the same drug for the s

You May Also Find These Documents Helpful

  • Good Essays

    FAMILY NAME: . . . . . . . . . . . . . . . . . . . . . . . . . . . . OTHER NAME(S):. . . . . . . . . . . . . . . . . . . . . . . . . . STUDENT NUMBER: . . . . . . . . . . . . . . . . . . . . . . SIGNATURE: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .…

    • 10483 Words
    • 42 Pages
    Good Essays
  • Better Essays

    Jjt2 Task 1

    • 3217 Words
    • 8 Pages

    FERPA Model Notice for Directory Information. (2011, March 14). Retrieved April 30, 2014, from U.S. Department of Education: http://www2.ed.gov/policy/gen/guid/fpco/ferpa/mndirectoryinfo.html…

    • 3217 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    stupid file 1--duke tip

    • 724 Words
    • 3 Pages

    required! This procedure has been approved by the College Board, as noted in the sections on acceptable identification in the…

    • 724 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Infs2603

    • 2514 Words
    • 11 Pages

    * Projects are driven by business needs to create value (tangible or intangible e.g. improved customer service)…

    • 2514 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    Many students, 27 percent, are not satisfied with the senior project advisor’s involvement in their projects. But one person cannot realistically check in with each student in depth, so we propose hiring an additional advisor to help check in with students.…

    • 455 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Scholarly Practice Project

    • 1931 Words
    • 8 Pages

    2. The project leadership may be solo or collaborative depending on the scope of the…

    • 1931 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    I, the undersigned, hereby authorize the OISS at Utah State University to release the following education records and information (identify records or type of records):…

    • 386 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ground Rules Worksheet

    • 1678 Words
    • 7 Pages

    Group projects are turned in to a project editor. That person edits & reviews the document then submits it to the Center for Writing Excellence, for review.…

    • 1678 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Having an educational background of those who profiles has become a requirement in recent years…

    • 599 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Data Base Management System

    • 13596 Words
    • 55 Pages

    * A group of related fields, such as the student’s name, the course taken, the date, and the grade, comprises a record.…

    • 13596 Words
    • 55 Pages
    Powerful Essays
  • Better Essays

    I certify that the attached paper is my original work. I am familiar with, and acknowledge my responsibilities which are part of, the University Of Phoenix Student Code Of Academic Integrity. I affirm that any section of the paper which has been submitted previously is attributed and cited as such, and that this paper has not been submitted by anyone else. I have identified the sources of all information whether quoted verbatim or paraphrased, all images, and all quotations with citations and reference listings. Along with citations and reference listings, I have used quotation marks to identify quotations of fewer than 40 words and have used block indentation for quotations of 40 or more words. Nothing in this assignment violates copyright, trademark, or other intellectual property laws. I further agree that my name typed on the line below is intended to have, and shall have, the same validity as my handwritten signature.…

    • 1332 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    During the project the project members will have different tasks, which are: Purchasing Manager, Operations Manager, Sales Manager and Supply Chain…

    • 10480 Words
    • 42 Pages
    Satisfactory Essays
  • Satisfactory Essays

    the program. The project wide looks at the program as a whole, and can be setup for the staff,…

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    437 Final Exam

    • 1668 Words
    • 7 Pages

    4. In which organizational form is the project manager least likely to share resources with other projects?…

    • 1668 Words
    • 7 Pages
    Better Essays
  • Good Essays

    The Project Environment

    • 2321 Words
    • 10 Pages

    Project Organization: means the way in which the project implementation team is established and who the participants are. It could either be single-discipline or multi-discipline projects depending on nature and size. To minimize risk and ensure the objective of improving the chances of successful delivering of project on time, to budget and to specification; clients in the building industry – especially developers have moved to other forms of procurement rather than the traditional method that often split responsibility in an unrealistic and arbitrary way. It is observed that single-discipline project has lesser risk to multi-discipline project, as individuals are more aware of risk than group of people.…

    • 2321 Words
    • 10 Pages
    Good Essays