Database Schema-SQL Statements

Programming

Please see attached to use as a resource to create SQL queries and see attached for Topic 2 assignment to use to complete this assignment. Thanks.

Topic 2 assignment Database Schema Instructor feedback

Instructors Comments:

Stephanie, outstanding first iteration and well defined relationships by PatientID, PhysID, and PharmID! Add date to Diagnosis. Patient vitals, progress, and summary would typically be stored in an encounter table since multiple records exist per patient and recording history is mandatory. You can move them to an encounter table or just remove them from Patient. Your data dictionary has outstanding definitions and examples but include data type and field length for every attribute. Exemplary work Stephanie!

Please include data type and field length for every attribute.

Database Schema-SQL Statements

For this assignment you will create SQL queries use the following database schema:

  1. Patient—PatientID, Name, DOB
  2. Doctor—DoctorID, Name, MedLicenseNumber, Phone
  3. Medication—MedicationID, BrandName, GenericName
  4. Prescription—PrescriptionID, Date, PatientID, PrescriberID, MedicationID

Specify the SQL queries to retrieve:

  1. A list of all doctors.
  2. The number of patients who were born before 01/01/1994.
  3. The patient information along with the ID of any prescribing doctor for each patient.
  4. The prescription information along with patient name, DOB, medication brand name, and prescribing doctor name sorted by most recent date.
  5. The most prescribed generic medication name.

APA style is not required, but solid academic writing is expected.

Based on the feedback received on your Topic 2 assignment Database Schema, provide SQL statements to create the (revised) database and populate it with sample data (at least four rows per table). Please include data type and field length for every attribute.

Modify the database by adding an additional column (“Deleted_Date”) to those tables that represent entities that could contain data which can be deleted and justify your rationale in a short paragraph. In addition, explain what the tradeoffs are in using a marker-column for deletion, as opposed to actually deleting a row from a table?

This assignment uses a rubric. Please see attached. Please review the rubric prior to beginning the assignment to become familiar with the expectations for successful completion.

Prepare this assignment according to the guidelines found in the APA Style Guide, located in the Student Success Center.

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational