Question: Assessment Challenge 2 . 1 - ERD ( MULTIPLE ATTEMPT ) Please be aware that the tables for PATIENT, PHYSICIAN and TREATMENT entities in the
Assessment Challenge ERD MULTIPLE ATTEMPT
Please be aware that the tables for PATIENT, PHYSICIAN and TREATMENT entities in the ERD below have already been created.
Question Create "PatientTreatmentT table for the "PATIENT TREATMENT entity in the ERD.
Note: Use the following data types and names for some attributes you need:
DATE data type for PatientTreatmentDate attribute,
TIME data type for PatientTreatmentTime attribute, and
VARCHAR data type for PatientTreatmentResults attribute.
Question Insert rows in the PatientTreatmentT table as follows:
a row for patient that had an appointment with physician on May at : am and he has received the treatment code TRthe value for the rest of the attributes need to be determined by you
a row for patient that had an appointment with physician on May at : am the value for the rest of the attributes need to be determined by you
a row for a patient that had an appointment with physician on May at : am and he has received the treatment code TRthe ID of the patient and the value for rest of the attributes need to be determined by you
Note : be careful about the data type of the attributes, and Pk constraints and FK constraints of the tables.
Note : You need to use DATE data type format mmddyyyy and TIME data type where required.
In your insert statement, the Date value should be date format mmddyyyy and the Time value should be : am
Note : use PatientTreatmentT name for your table
Note : Use the same name for your FKs and the related PKs eg if PK of PATIENT table is a FK in your PatientTreatmentT table, then use PatientID as the name for your FK
Note : Check the generated ERD based on your Code. The ERD will be generated under the console.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
