Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Instructions: You may draw the diagrams using any program. HOWEVER, the constructs must conform to the Crow’s Foot diagramming conventions.

1.  For problem 1, turn in 3 ER diagrams.

a. Draw an ERD containing Patient, the Physician and Visit entity types connected by 1-M relationships from Patient to Visit and Physician to Visit.  Choose appropriate names for the relationships. Define minimum cardinalities so that Patients and Physicians are mandatory for a Visit but Visits are optional for Patients and Physicians. For the Patient entity type, add attributes PatNo (primary key), PatFirstName, PatLastName, PatStree, PatCity, PatState, PatZip and PatHealthPlan. For the Physician entity type, add attribues PhyNo (primary key), PhyFirstName, PhyLastName, PhySpecialty, PhyPhone, PhyEmail, PhyHospital, PhyCertification. For the Visit entity type, add attributes VisitNo (primary key), VisitDate, VisitPayMethod, and VisitCharge.  You do not need to specify datatypes.

b. Draw a second ERD. Extend the ERD from 1.a. with the Nurse, the Item and the VisitDetail entity types connected by 1-M relationships between Visit to VisitDetail, Nurse to VisitDetail, and Item to VisitDetail.  VisitDetail is a weak entity with the 1-M relationship from Visit to VisitDetail an identifying relationship. Choose appropriate names for the relationships.  Define minimum cardinalities so that a Nurse is optional for a VisitDetail, an Item is mandatory for a VisitDetail, and VisitDetails are optional for Nurses and Items.  For the Item entity type add attributes ItemNo (primary key), ItemDesc, ItemPrice and ItemType.  for the Nurse entity type, add attributes NurseNo (primary key), NurseFirstName, NurseLastName, NurseTitle, NurseSpecialty, NursePhone and NursePayGrade.  For the VisitDetail entity type, add attributes for the DetailNo (part of the primary key), and DetailCharge. 

c. Draw a third ERD. Refine the ERD from 1.b. with a generalization hierarchy consisting of Provider, Physician and Nurse entity types.  The supertype of the Generalization hierarchy is the Provider.  The primary key of Provider is ProvNo, replacing the attributes PhyNo and NurseNo.  The other attributes in Provider should be the attributes in common between Physician and Nurse (rename them to be consistent with the Provider entity type).  A provider must be either a Nurse or a Physician but cannot be both.

d. Check your diagram for violations of the completeness and consistency rules (Table 5.4).  Now, draw a fourth ERD to modify your diagram to add violations of Completeness Rule 3, and of Consistency Rules 3, 8 and 9.   Make a list of those violations.

2.  “Read” the relationships of the following diagram, being sure to include in the statements phrases to express both minimum and maximum cardinality for each relationship.

501_Relationships.jpg

3. Convert the following  Generalization–Specialization diagram into relational tables.  Show THREE different ways that you can do this. Show the table SCHEMAS but NOT the CREATE TABLE statements. 

119_Relationships_1.jpg

4.  Convert the following diagram into relational database tables.  You do not need to list the conversion rules. Show the table SCHEMAS but NOT the CREATE TABLE statements. 

2153_Relationships_2.jpg

5. Convert the following diagram  into relational database tables.  You do not need to list the conversion rules.  Show the table SCHEMAS but NOT the CREATE TABLE statements.

1120_Relationships._3jpg.jpg

DBMS, Programming

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

Have any Question?


Related Questions in DBMS

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 ...

Backgrounda new training organization called abc

Background A new training organization called ABC TechTraining is opening soon and they have approached you to help design their new database. They have just completed the refurbishment of the premises and are now lookin ...

Football association of zambia faz super leaguethe faz has

Football Association of Zambia (FAZ) Super League The FAZ has recently decided to reorganise their operations to support both existing and possibly expanded league operations in Zambia and part of preparation for the 201 ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

Question suppose we have two kinds of doctors hospital

Question : Suppose we have two kinds of doctors: hospital doctors and family physicians. In addition to the doctor's id number, name, specialty, and years of experience, we want to record the hospital name for the hospit ...

Suppose that you have designed a database for morgan

Suppose that you have designed a database for Morgan Importing that has the following tables: EMPLOYEE (EmployeeID, LastName, FirstName, Department, Phone, Fax, EmailAddress) STORE (StoreName, City, Country, Phone, Fax, ...

Question create an erd for the following scenario once you

Question: Create an ERD for the following scenario. Once you submit you will get access to the correct way to create the ERD. Please watch the video and correct any errors in your submission and resubmit. A small company ...

Database and information retrieval assignment - data

Database and Information Retrieval Assignment - Data Privacy Essay Task - Write an essay (aim for 750 words) that addresses issues associated with data proivacy. Use the Australian Privacy Principles - discussed in class ...

  • 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