Categories: Homework on time

Jomo Kenyatta University SQL Statement and Generic Medication Essay 1) Based on the feedback received on your assignment Database Schema, provide SQL state

Jomo Kenyatta University SQL Statement and Generic Medication Essay 1) Based on the feedback received on your assignment Database Schema, provide SQL statements to create the (revised) database and populate it with sample data (at least four rows per table).

2) 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?

Don't use plagiarized sources. Get Your Custom Essay on
Jomo Kenyatta University SQL Statement and Generic Medication Essay 1) Based on the feedback received on your assignment Database Schema, provide SQL state
Just from $13/Page
Order Essay

APA format is not required.

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

Patient—PatientID, Name, DOB
Doctor—DoctorID, Name, MedLicenseNumber, Phone
Medication—MedicationID, BrandName, GenericName
Prescription—PrescriptionID, Date, PatientID, PrescriberID, MedicationID

Specify the SQL queries to retrieve:

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

superadmin

Share
Published by
superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago