Draw an er diagram that captures the preceding information

Assignment Help Computer Engineering
Reference no: EM132116098

Question 1 : A company database needs to store information about employees (identified by ssn, with salary and phone as attributes), departments (identified by dno, with dname and budget as attributes), and children of employees (with name and age as attributes).

Employees work in departments; each department is managed by an employee; a child must be identified uniquely by name when the parent (who is an employee; assume that only one parent works for the company) is known. We are not interested in information about a child once the parent leaves the company.

Draw an ER diagram that captures this information.

Question 2 : 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 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.

Draw an ER diagram that captures the preceding information. Identify any constraints not captured by the ER diagram.

Reference no: EM132116098

Questions Cloud

What is the operating cash flow : That is, the depreciation each year will be $128190/14. Assuming a tax rate of 26%, what is the operating cash flow?
Is quality simply a matter of coordinating excellent : Is quality simply a matter of coordinating excellent organizational effort? Can quality be simplified to this degree? Or is quality about much more?
Write a class supercrypt that is a subclass of crypt : For this problem, you will use threading to speed up a decryption process. There exists a class called Crypt with a static method decrypt.
How much is each worth today : Sara invested $950 at the same time, but her investment paid 8% compounded quarterly. How much is each worth today?
Draw an er diagram that captures the preceding information : The Prescriptions-R-X chain of pharmacies has offered to give you a free lifetime supply of medicine if you design its database.
Who is the proponent of theory of economic rhythm : Who is the proponent of theory of economic rhythm, action and reaction approach, time lag method and model building approach
Information for golden fleece financial : 1. Following information for Golden Fleece Financial:
What is a board support package : What is the purpose of the .qip file produced by Qsys and imported into Quartus?
Compute the present value of 10 monthly payments : Compute the present value of 10 monthly payments of $5000 (the first payment made 1 month from today).

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe potential benefits of enterprisewide architecture

List and describe all of the potential benefits (and costs) that Nationstate would realize from the establishment of an enterprisewide architecture.

  Write a assembly language program to convert temperature

Write a PIC18F assembly language program at address 0x150 to convert temperature from Fahrenheit to Celsius using the equation: C = [(F - 32)/9] × 5.

  Create a file-system-based timeline

Create a file-system-based timeline and turn in the first 10 and last 10 entries as well as the hash value of the file

  Analyse how data warehouses and data marts differ

Analyse how data warehouses and data marts differ. Explain 2-3 practical applications for each of them and justify your reasoning.

  Describe how are the topics of the two articles related

Prepare a brief synthesis and summary of the two articles. Describe How are the topics of the two articles related? What information was relevant and why?

  Describe the mapping of c stream functions

Describe the mapping of C stream functions (fopen, fread, fwrite, fclose) to device driver interfaces?

  Determine whether a given number is an armstrong number

Write a WinMIPS64 / EduMips64 code to determine whether a given number is an Armstrong number.

  The most important roles in systems development

How have the roles of systems analysts and end users changed in the past 20 years? What are the benefits and drawbacks to these changes.

  Draw the constellation diagram for the encoding

Draw the constellation diagram for the encoding. Demodulate the given signal (i.e., give the bit sequence that it represents).

  Design a class named loan that holds an account number

Design a class named Loan that holds an account number, name of account holder, amount borrowed, term, and interest rate.

  Explain relevant terms that will be used throughout project

Define relevant terms that will be used throughout project. Describe the scope and analyze how to control the scope. Identify possible risks, constraints, and assumptions.

  Determines the greatest common divisor of two numbers

Write and test a iterative function that determines the greatest common divisor (GCD) of two numbers.

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