Chapter Two – Introduction to Structured Query Language
Page 2-51
Now we will add in the following two tables:
PROJECT (ProjectID, Name, Department, MaxHours, StartDate, EndDate)
ASSIGNMENT (ProjectID, EmployeeNumber, HoursWorked)
Where
Department in EMPLOYEE must exist in DepartmentName in DEPARTMENT
The four tables in the revised WP database schema are shown in Figure 2-42 without the
recursive relationship in the EMPLOYEE table (which we will add in the following exercise
questions). The column characteristics for the PROJECT table are shown in Figure 2-43, and
the column characteristics for the ASSIGNMENT table are shown in Figure 2-45. Data for the
PROJECT table are shown in Figure 2-44, and the data for the ASSIGNMENT table are shown
in Figure 2-46.
Figure 2-42 – The WP Database with the PROJECT and ASSIGNMENT Tables
2.61 Figure 2-43 shows the column characteristics for the WP PROJECT table. Using the
column characteristics, create the PROJECT table in the WP.accdb database.