Design database using extended entity relationship diagram

Assignment Help Database Management System
Reference no: EM131751852

Database and Information Retrieval Assignment

The MediRAY chain of pharmacies has decided to develop a database system to store information of their prescriptions, patients, doctors and related details. They have given the development to your company and your manager has handed over the task to you.

Below are the requirements.

  • Patients and doctors are persons identified by the personal identification number. The person has address, email and phone number.
  • Patients have patient number (the hospital and the patient number used here ), and their names, addresses, and ages must be recorded.
  • Doctors have doctors registration number. For each doctor, the name, specialty, and years of experience must be recorded.
  • Each pharmaceutical company is identified by name, address, email 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 pharmaceutical 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 supervisor for each contract, but the contract supervisor can change over the lifetime of the contract.

Use the description provided above about MediRAY. You can make your own assumptions based on the requirements given. However, the assumptions should be clearly indicated / defined.

Answer following questions.

Provide the following:

1. Identify business rules. Business rules are important to define relevant constraints in the organisations. Some organisations have specific rules only practiced by the organisation. (e.g. A business rule for a car sales company may be "for each car a separate invoice should be issued."). You can make any appropriate assumptions and mention them in your answer.

2. Design the database using Extended Entity Relationship (EERD) Diagram. Clearly indicate entities, attributes, relationships, cardinalities, primary keys and other special types of attributes and relationships (e.g. multivalued attributes/ ISA relationships, etc.).

3. Develop relational schemas. Relational schemas should be derived using the EERD. You should map cardinalities correctly from EERD to Relational Schema. You should clearly indicate the referential integrity constraints (primary and foreign key relationships) using arrows. Clearly indicate datatype for each attribute.

4. Perform Normalization (including 3 rd Normal form). In each normal form mention what you would consider and clearly show how would you remove redundancies. You should clearly indicate how the relational schemas are changing at each stage, and how you would adjust the referential integrity of the schemas.

5. Write 5 queries with where clause that you think would be used by the MediRAY. You are required to clearly indicate the functionality of each query. You will not be given marks if you have not explained the functionality of each query.

Reference no: EM131751852

Questions Cloud

What question is your classmate attempting to answer : What question is your classmate attempting to answer? Provide at least 4 alternate questions for the author.
Triple as in supply chain management : Explain the triple As in supply chain management, Give one example for each.
Identify risks according to their inherent impact : Pizza Inc., a pizza take-out and delivery chain, is experiencing decreasing revenues and is steadily losing market share despite favorable market testing.
Organizations are increasingly transcending country boarders : Organizations are increasingly transcending country boarders and physical space limitations.
Design database using extended entity relationship diagram : SIT103 - Database and Information Retrieval Assignment. Design the database using Extended Entity Relationship (EERD) Diagram
As the number of orders increases the holding costs : As the number of orders increases the holding costs. The salvage value and the market value are always equal.
Expatriates of multinational enterprises : Describe the different roles performed by expatriates of multinational enterprises (MNEs) during their tenure in foreign countries.
Organizations sustainable social responsibilities in oman : Write an introductory paragraph citing the brief overview of the company and objectives of the assignment - Critically analyse Omantel's success strategies
In what way is this an ethical dilemma for barbara : In what way is this an ethical dilemma for Barbara, Use the six-step approach discussed in this chapter to resolve the ethical dilemma.

Reviews

len1751852

12/5/2017 11:56:01 PM

Australian student, need everything as per the guidelines. Note: Use correct symbols. If the symbols are incorrect your diagram cannot be considered as correct. You could use either crow’s foot or Chen’s EERD rules. However, do not mix both. And you should draw the EERD diagram using a Computer Aided Tool. You may use Lucidchart, word MS Visio or a similar tool.

len1751852

12/5/2017 11:55:54 PM

Submission: Submit a copy of your solution – a single document (pdf format – 5 penalty marks will be deducted for other format of submissions), electronically on the course portal, on or before the due date. You must submit your Report with - A cover page (with student number, name and a signed statement that states that all the work is your own work.)- Omission of one of the items will mean that 5 penalty marks will be deducted from the final mark. Answers for above mentioned questions. The design should be very clearly documented, and answers should be written in the order of the questions. If not, 5 penalty marks will be deducted. Please see the marking scheme on next page.

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd