Ask DBMS Expert


Home >> DBMS

Assignment: Data Management

Part 1. Data Model for a Medical Clinic

1A. Draw an ERD from the following description.

• In the ERD, put primary keys and foreign keys. You do not have to place attributes other than primary keys (PKs) and foreign keys (FKs).
• There must be no multi-valued attributes in the ERD.
• There must be no many-to-many relationship in the ERD.

A medical clinic database must satisfy the following requirements:

1. A patient (with Pat_ID as the PK) can make many appointments (with Appt_No as the PK) with one or more doctors (with Doc_ID as the PK) in the clinic, and a doctor can accept appointments with many patients. However, each appointment is made by exactly one patient for exactly one doctor.

2. If kept, an appointment yields a visit (with Visit_No as the PK). A visit is for only one appointment.

3. The visit yields one or more visit details (with Visit_No and Detail_No as the PK). There are two kinds of visit details: diagnosis and treatment. A treatment is performed by exactly one medical staff (Staff_ID as the PK) member; a medical staff member may perform many treatments.

4. Each visit creates one (or no) bill (with Bill_No as the PK); a bill may cover many visits.

5. A bill may be paid by many (or no) insurances (with Insur_ID as the PK); an insurance may cover many bills.

6. An insurance insures exactly one patient; a patient may have many insurances.

1B. Convert the above ERD into a relational model (i.e., tables with primary key and foreign keys).

Part 2. Data Model for Shipping Tickets

2A. The following figure shows a shipping ticket that is sent to the customer together with products they ordered. Prepare an entity relationship diagram (ERD) reflecting the data contained in the shipping ticket.

Note:

• The ERD must have Customer (Customer ID as the PK), Manufacturer (Manufacturer Name as the PK), Carrier (Carrier Name as the PK), and many other entities.

• Assume that there is only one customer and one carrier for each order.

The ERD must include not only entities and relationships with cardinalities but also all attributes. Underline the primary key. There must be no many-to-many relationships and no multi-valued attributes. Enter all foreign keys in the ERD.

2B. Convert the above ERD into a relational model (i.e., tables with primary key and foreign keys).

Part 3. The National Collegiate Athletic Association (NCAA) Football Database

3A. Draw an entity-relationship diagram for an NCAA football database that must contain data of:

• School: (1) school name, (2) conference that the school belongs to, (3) average cost of a game ticket in each year (since the introduction of the team), (4) number of in-state players in each year (since the introduction of the team), (5) number of out-state players in each year (since the introduction of the team), (6) number of scholarships that the school offers in each year (since the introduction of the team), (7) number of players who graduated in each year (since the introduction of the team), and (8) number of recruiting incidents (usually violations) in each year (since the introduction of the team).

• Player: (1) player id number, (2) player name, (3) birth date, (4) school that the player represents, (5) year when the player joined the school, (6) high school from which the player graduated.

- A player plays for one school. In a school, there are many players.

• Coach: (1) coach id number, (2) coach name, (3) birth date, (4) schools for which the coach worked and is working, (5) dates during which the coach worked for schools, and (6) positions at schools.

- A coach may have worked for more than one school.
- But a coach cannot work for more than one school at one time.
- Further, a coach cannot have more than one position at one time.

• Stadium: (1) stadium name, (2) stadium size (i.e., no. of seats), and (3) owner

- The owner of a stadium can be either a school or a non-school owner.
- Every stadium is owned by exactly one school or non-school owner.
- A school may own one or more stadiums.

• Game: (1) location (e.g., stadium), (2) date, (3) two schools, (4) scores, and (5) number of injuries for each school.

• Bowl Game: as a subtype entity of the game entity. (1) organizer and (2) bowl description.

The ERD must include not only entities and relationships with cardinalities but also all attributes. Underline the primary key. There must be no many-to-many relationships and no multi-valued attributes. Enter all foreign keys in the ERD.

3B. Convert the above ERD into a relational model (i.e., tables with primary key and foreign keys).

Attachment:- Assignment-Data-Management.rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92704970

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As