Ask DBMS Expert


Home >> DBMS

Assignment

Questions 1 - 4 refer to a proposedLong-Term Care Hospital Comparedatabase model in response to a request to design a database to store hospital evaluation data. You will use the database modeland an Excel workbook to complete the tasks described in each question. The database modelincludes a description of the data, a relational model and a set of business rules.The accompanying Excel workbook contains the data to populate the proposed database.

Examples of the types of information contained in the proposed database:

1. The Rate of complications for hip/knee replacement patients at SOUTHEAST ALABAMA MEDICAL CENTER is the same as the national rate.

2. The estimate of the average rate of complications for hip/knee replacement patients at SOUTHEAST ALABAMA MEDICAL CENTER is 3.8 and the 95% confidence interval of the average rate of complications is (2.6, 5.5).

3. 331 cases of hip/knee replacement procedures were evaluated at SOUTHEAST ALABAMA MEDICAL CENTER during the period 4/1/2012 - 3/31/2015.

Description of the Long-Term Care Hospital Comparedata and data model:

The model represents a proposed database in response to a request to create a Hospital database to storeevaluation data. The hospitals are evaluated on one or more medical procedures called measures. The database userwill be able to obtain the evaluation results of a hospital and compare it to the national average.

Some of the business rules are

• A hospital is uniquely identified by a provider id.
• There are different types of hospitals.
• There are different types of hospital ownership.
• A hospital is evaluated on one or more measures. A hospital and measure combination is unique.
• The severity of the complications resulting from procedures is evaluated on a scale of 1 - 10.

Table 1: Tables, primary keys and foreign keys shown in the relational diagram

Description of table

Table Name

Primary key

Foreign keys

Hospital information

HOSP_LIST

PRVDR_ID

HOSP_TYPE_CD, HOSP_OWNRSHP_CD

Hospital type description

HOSP_TYPE_LIST

HOSP_TYPE_CD

 

Ownership type description

HOSP_OWNRSHP_LIST

HOSP_OWNRSHP_CD

 

Measures (Procedures) description

HOSP_MEASURE_LIST

MEASURE_ID

 

National Averages

HOSP_NATNL_CMPR

PRVDR_ID, MEASURE_ID

PRVDR_ID, MEASURE_ID

Figure 1:Long-Term Care Hospital Compare database model

1288_Database-Model.jpg

1. Use any technique to write or generate the Oracle DDL commands necessary to create thetables, primary keys and referential integrity constraintsfor the tables and attributes listed in Table 1 and Figure 1.

It is not required to name non-key attributes the same the name shown on the relational model.

The instructor will execute the SQL commands to verify that they execute correctly.

To test your tables, primary keys and referential integrity constraints, write the Oracle DML commands to test the primary key constraints and the referential integrity constraints. Test the primary key constraint for each table and then test the referential integrity constraint for each table that contains a foreign key. The instructor will execute the SQL commands to verify that they reasonably test the constraints of the database. Use the INSERT statement. Use the DROP statement to as necessary to expedite testing.

• Submit a copy of the Oracle DDL as a separate file with the nameDDL_Midterm.SQLto the assignment folder for the midterm.

• Show evidence that you successfully created the tables - show screenshots.

• Submit a copy of the Oracle SQLtest commandswith INSERT and DROP commands as a separate file with the name Test_Constraints_Midterm.SQLto the assignment folder for the midterm.

• For each test, describe the test, the test data and the expected result of the test.

• Show evidence that you successfully tested the constraints of your database- show screenshots.

2. Populate the tables you created in question 1 with the data set provided.

• Describe the process you followed to populate the database. Support your description with screenshots or SQL for the process you describe.

• Show evidence that you successfully populated the tables in Oracle - in the space below show screenshots of the result set of a SELECTandCOUNT statements.

3.

3.a Write the following queries:

Determine the number of hospitals by type of hospital in each state. Include the state name and the hospital type in the result set.

• Show evidence that you successfully executed the query - show screenshots below of the result of the queries.

3.b Add an index to your database thatwould benefit the query in part 3.a

--- Do not create an index on a primary key

• Explain why the index is beneficial.

• Show evidence that you successfully created the index - show screenshots below that show the index in Oracle SQL Developer.

• Submit one file that contains the SQL commands for the queries a

Place Question 3 answers and documentation here.

4. Write a query whose result set contains the names of the hospitals where Deaths among Patients with Serious Treatable Complications after Surgery is "No Different than the Nation Rate" and Mortality national comparisonis "Above the national average".

• Show evidence that you wrote and successfully executed the query.

https://www.dropbox.com/s/tld7b6g4gtqrgz9/HQI-HOS-Comp.rar?dl=0

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92492250
  • Price:- $70

Guranteed 36 Hours Delivery, In Price:- $70

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