Question: MSIS / IT 2 3 0 DATA FOR INSERT STATEMENTS The following grids contain the data to be inserted into the tables. Please note that

MSIS/IT230
DATA FOR INSERT STATEMENTS
The following grids contain the data to be inserted into the tables. Please note that the grid columns may not be in the same order as the table columns, so be sure your Insert statements are syntactically correct. Only insert data for the tables included in this document.
All SQL statements must be in one .sql file and submitted to Blackboard. DO NOT INCLUDE THE CREATE TABLE SQL FROM PHASE 2. You must include the following:
1. Delete statements for all tables must be done first.
2. Insert statements for all tables must be done second.
Remember the order is important. Delete all data from tables with foreign keys first, then delete data from all tables with just primary keys. Insert data into all tables with just primary keys first, then insert data into all tables with foreign keys.
You must use the proper naming convention for the file or it will not be graded and you will need to resubmit. \begin{tabular}{|c|c|c|c|c|}
\hline \multicolumn{5}{|c|}{Schedule}\\
\hline Bmployeel & Daypincek & Sortisa & Startime & Endolime \\
\hline PP001 & MO & 1 & 12:00 & 20:00\\
\hline PP001 & WE & 3 & 8:00 & 17:00\\
\hline PP001 & FR & 5 & 12:00 & 20:00\\
\hline AA001 & 1U & 2 & 8:00 & 17:00\\
\hline AA001 & TH & 4 & 8:00 & 17:00\\
\hline RK002 & TU & 2 & 8:00 & 17:00\\
\hline RK002 & TH & 4 & 12:00 & 20:00\\
\hline MB002 & MO & 1 & 8:00 & 12:00\\
\hline MB002 & TU & 2 & 8:00 & 12:00\\
\hline MB002 & WE & 3 & 8:00 & 12:00\\
\hline MB002 & TH & 4 & 8:00 & 12:00\\
\hline MB002 & FR & 5 & 8:00 & 12:00\\
\hline WS001 & MO & 1 & 12:00 & 17:00\\
\hline WS001 & 1U & 2 & 12:00 & 17:00\\
\hline WS001 & WE & 3 & 12:00 & 17:00\\
\hline WS001 & TH & 4 & 12:00 & 17:00\\
\hline WS001 & FR & 5 & 12:00 & 17:00\\
\hline LC001 & MO & 1 & 8:00 & 17:00\\
\hline LC001 & WE & 3 & 8:00 & 17:00\\
\hline LC001 & FR & 5 & 8:00 & 17:00\\
\hline MB001 & TU & 2 & 8:00 & 12:00\\
\hline MB001 & TH & 4 & 8:00 & 12:00\\
\hline KN001 & MO & 1 & 8:00 & 12:00\\
\hline
\end{tabular}
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline \multicolumn{7}{|c|}{Appointment}\\
\hline Aprointmentip & Patientur & Bmplayeelu & Anpipate & Startine & Duration & Status \\
\hline APP001 & SJ001 & MB002 & 07/05/2023 & 09:00 & 2 & Scheduled \\
\hline APP002 & RA001 & AA001 & 09/13/2023 & 12:00 & 3 & Scheduled \\
\hline APP003 & TA001 & PP001 & 07/11/2023 & 16:00 & 1 & Scheduled \\
\hline APP004 & CM001 & JE002 & Nuil & Nuil & & \\
\hline APP005 & HB001 & RK002 & 08/23/2023 & 08:00 & 1 & Scheduled \\
\hline APP006 & FLO01 & EL001 & Nuil & Nuil & & \\
\hline APP007 & JW001 & WS001 & 07/25/2023 & 15:00 & 2 & Scheduled \\
\hline APP008 & MY001 & EL001 & Nuil & Nuil & & \\
\hline APP009 & TA001 & JE002 & Nuil & Nuil & & \\
\hline APP010 & CM001 & PP001 & 07/19/2023 & 11:00 & 2 & Scheduled \\
\hline
\end{tabular}\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline \multicolumn{3}{|c|}{MericalifistoryCond} & \multicolumn{3}{|c|}{MericalistoryPres} & \multicolumn{3}{|c|}{Mericalisistorysurg}\\
\hline Patiendlu & MHCDate & Conditiond & Paticuthe & Merenate & Prescristion & Paticuthe & Mrisuate & Surgervil \\
\hline SJ001 & 02/02/2022 & ARIH & SJ001 & 02/02/2022 & FAMO & KY001 & 03/02/2023 & APP \\
\hline NS001 & 05/05/2022 & CHOL & NS001 & 05/05/2022 & EZE & SJ001 & 07/09/2022 & JNTREP \\
\hline CM001 & 11/15/2022 & CHSTP & HB001 & 06/06/2022 & TAM & HB001 & 06/06/2022 & ARTH \\
\hline HB001 & 06/06/2022 & FRACT & SJ001 & 09/09/2022 & FIN & CN001 & 12/15/2022 & CORON \\
\hline SJ001 & 09/09/2022 & HDACH & CN001 & 12/12/2022 & WARF & SW001 & 05/09/2022 & INGH \\
\hline CN001 & 12/12/2022 & CHSTP & TA001 & 10/12/2022 & AMOX & SM001 & 02/27/2022 & JNTREP \\
\hline TA001 & 10/01/2022 & EAR & JS001 & 05/13/2022 & PROZ & & & \\
\hline PH001 & 05/19/2022 & DIAB1 & JW001 & 04/09/2022 & AMOX & & & \\
\hline JW001 & 04/09/2022 & PNEUM & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline & & & & & & & & \\
\hline
\end{tabular}
\begin{tabular}{|c|c|c|}
\hline \multicolumn{3}{|c|}{DondayceSpecialty}\\
\hline Bmplaveelu & Sequence & Specialtyld \\
\hline PP001 & T & FAM \\
\hline PY001 & 2 & PED \\
\hline AA001 & 1 & GENSG \\
\hline EL001 & 1 & VASSG \\
\hline RK002 &

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!