aljarru / Health-Analytics-Mini-Case-Study

Mini Case Study is from Danny Ma's 8 Week SQL Challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Health-Analytics-Mini-Case-Study

Mini Case Study is from Danny Ma's 8 Week SQL Challenge

The Objective of this case study is to debug SQL code and assist the General Manager of Health Analytics in answering questions for a board meeting.

Prior to answering the questions, SQL best practices encourage understanding the dataset and its fields.

This dataset includes 6 columns which are named as id, log_date, measure, measure_value, systolic, and diastolic. How this was determined by running this query (See Below).

image

Due to the large amount of data, I was initally unsure of how many measures were present, running the query below displayed 3 measures blood_glucose, blood_pressure, weight.

image

Questions 1-9 will be displayed as screenshots of the the incorrect code followed by screenshots of the correct code.

Q.1

image

Q.2-8

image

Q.2

image

Q.3

image

Q.4

image

Q.5

image

Q.6

image

Q.7

image

Q.8

image

Q.9

image

About

Mini Case Study is from Danny Ma's 8 Week SQL Challenge