Find the oldest person in the data

Assignment Help Database Management System
Reference no: EM131415474

Question 1: Using the attached data previously provided to you, do the following tasks as separate SQLs. 

1. Remove visits from dead patients and count distinct number of remaining patients

2. Remove diagnoses before birth, i.e. negative age of diagnosis and count number of distinct diagnoses remaining

3. Remove patients with more than 365 diagnosis per year of age and count number of patients remaining

4. Remove diagnoses after age of 110

5. Remove diagnoses with no age of diagnosis

6. Find the oldest person in the data

7. Remove patients with less than 365 days between their first and last diagnosis. 

8. Report the number of distinct patients who have only 1 diagnosis

9. For patients who have diabetes, identify the average age of diabetes and standard deviation of the age of diabetes.  Define as diabetic any patient who meets the AHRQ requirement for diabetes

Provide your SQL code as well as answers but no data. 

Question 2: Assess the average impact of CHF on length of stay while controlling for all other comorbidities. To do this, compare all cases with CHF to all controls without the disease. Make sure that in each comparison, patients with and without disease have the same set of comorbidities. Produce a table with the 10 estimates n1 through n10 provided below.

Strata

Cases of CHF

Controls with No CHF

Difference

AA

n1

n6

n1-n6

AA, MI

n2

n7

n2-n7

AA,DM

n3

n8

n3-n8

DM, MI

n4

n9

n4-n9

AA,DM,MI

n5

n10

n5-n10

 

Case

1st Diagnosis

2nd Diagnosis

3rd Diagnosis

4th Diagnosis

Length of stay

Number of Patients

Type

1

MI

CHF

DM


5.56

10

2

MI



AA

4.1

10

3


CHF

DM

AA

5.54

10

4


CHF

DM


3.56

20

5

MI

CHF


AA

7.03

30

6

MI

CHF



5.02

30

7


CHF


AA

5.04

30

8

MI

CHF

DM

AA

7.62

40

9

MI




2.03

40

10


CHF



3.03

40

11

MI


DM


2.6

50

12



DM

AA

2.57

50

13



DM


0.61

60

14




AA

2.12

70

15





0.01

80

16

MI


DM

AA

4.57

120

MI = Myocardial Infarction; CHF = Congestive Heart Failure; DM=Diabetes Mellitus; AA=Alcohol abuse

Attachment:- Assignment File.rar

Reference no: EM131415474

Questions Cloud

Create a toolkit containing all the approaches and methods : Create a toolkit containing all the approaches, methods, strategies, and techniques you can implement to meet the needs of diverse learners, specific to your grade level and content areas.
Compute the conservatism ratios for both companies : Compute the conservatism ratios for both companies and comment on the differences. Which company is more conservative, and why?
The project would need a sponsor with an organization : The project would need a sponsor with an organization. It can be a small organization.  The project would need to have multiple people/functions (at least four) working on the project. We will be creating a complete project plan in this class that yo..
Conflict can be viewed from many different angles : A conflict can be viewed from many different angles, many different perspectives. Perspectivism posits that we know no fact without interpretation, hold not claim of reality independent of belief. Perspectivism also holds that there are many ways to ..
Find the oldest person in the data : Using the attached data previously provided to you, do the following tasks as separate SQLs. Remove visits from dead patients and count distinct number of remaining patients. Find the oldest person in the data. Remove patients with less than 365 day..
Opportunity cost of going to the concert : Suppose your favorite band is on tour and coming to your area. Tickets are $100, and you take a day off from work, which you would have earned $60. What is your opportunity cost of going to the concert?
Quantitative effect of a specific tax : How would the quantitative effect of a specific tax on welfare change as demand becomes more elastic?
The eastern concept of collectiveness : Examples you might choose from include religion, philosophy, government, business or any combination of these or others you think best demonstrate the concept of collectivism. Remember to also state how this concept can be seen in, or strongly inf..
Find optimal solution to thie problem using isoprofit lines : The marketing manager for Mountain Mist soda needs to decide how many TV spots and magazine ads to run during the next quarter. Each TV spot costs $5,000 and is expected to increase sales by 300,000 cans. Each magazine ad costs $2,000 and is expected..

Reviews

len1415474

3/6/2017 3:36:12 AM

Assignment Work with following details. Subject : SQL, Acess, Excel. Comments/Deadline : Please provide screenshots as well as written code. These are the data needed to complete the assignment. I also sent the assignment. Thanks. Please answer all questions. Use this word document to provide your answers. Provide SQL code and first 10 row of data asked for. Copy charts into this document. Make sure that charts are labeled appropriately. Copy tables into this document, format to fit the space. You can lose points if your work does not look professional. Use only black font color. Use only one font size. Submit only one file, this file – nothing else. Keep all of your work, we may ask for it. Submit on time, any delay in submission will lead to 10% loss of grade.

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