Topic: Repeated SQL & Query Optimization
Learning Module Objectives:
After completing the activities in this section, you should be able to:
Teach One Assignment
If you are supposed to teach about this section of the course, select one of the assignments, do the assignment and show it to the instructor to make sure you have done it correctly. Prepare your slides, narrate your slides, remove excess words from narrated slides, convert narrated slides to a file format that can be uploaded, upload your file, email everyone in the class the URL of your file. Make sure that all these tasks are done ahead of scheduled class session. Your peers will appreciate receiving your advice on how to solve a class assignment as soon as possible and well before last day prior to class session.
No individual assignment should be completed in teams. Submit your work in Blackboard. Do not discuss the work with other students.
Question Related to Cursor and Do-While Commands: Refer to the patient 457631 that was analyzed in a previous assignment. This patient has been hospitalized at age 58.08 with the 5 diagnoses IV17.3, I401.9, I278.00, I786.05, I272.4, calculate how many patients show in the data with 2, 3, 4, and 5 combinations of these diagnoses. Use a do-while command to go through the various combination of these diagnoses. Calculate the odds of mortality for each of these combination of diagnoses. Data►
Question Related to Query Optimization: Use indexes defined on id, icd9, and AgeAtDx to make the code that you and teammates had prepared for predicting mortality. Report the computational efficiency of the code before and after indexing. Data►
Ongoing Question: This question is an individual project. Each week a portion of the work is done. This week calculate accuracy of predicting diabetes using diagnoses, age and gender as predictors.
There are no team assignments this week.
Copyright © Farrokh Alemi, Ph.D. First created on January 9th 2005. Most recent revision 07/12/2018. This page is part of the course on Healthcare Databases.