Upload a copy of each of your scripts to IvyLearn.
M05_LastNameFirstName_CreateTables
M05_LastNameFirstName_Constraints
M05_LastNameFirstName_Alter
M05_LastNameFirstName_InsertInto
M05_LastNameFirstName_Update
*Note: For fields that exist in multiple tables, data type and size should be the same (i.e. ProjDeptID exists in ProjDept, Employee, and Task tables; the datatype for the ProjDeptID in each of these tables should be the same). When creating tables, consider data that is dependent on each other (i.e. primary key fields must always be created before foreign keys can reference them). For the data entry is time consuming; be sure to allot enough time to complete the data entry portion of this assignment. To successfully insert your statements, use the same table names that used in when creating the tables for this assignment. When entering data, consider data that is dependent on each other (i.e. primary key data must always be added before foreign keys). Required fields must have data.
(40 points) Based on the Entity Relationship Diagram (shown on page 3) for the Employee Projects Database, complete the following:
1. Write the SQL statements for creating the tables for the Employee Projects Database. Save these statements in a script called M05_LastNameFirstName_CreateTables (where LastName is your last name and FirstName is your first name). Run/execute these commands in Oracle Application Express. Upload a copy of your script to IvyLearn.
ID fields use NUMBER(x) datatype
Date fields use DATE datatype
Any field that will be a string use the VARCHAR2(x) datatype, where x is the appropriate size of the field
To assist with choosing sizes for the datatypes, some examples of the data for each table created can be found on the last page of this assignment.
2. Write the SQL statements for altering the tables in the Employee Projects Database to define the primary key and foreign key constraints. Save these statements in a script called M05_LastNameFirstName_Constraints (where LastName is your last name and FirstName is your first name). Run/execute these commands in Oracle Application Express. Upload a