Page 121 - AIS access_chang_ingraham
P. 121
HUMAN RESOURCE PROCESS OVERVIEW 119
Create a Relational Database for Tragg's Following the REA Diagram
Tragg's table structure for the Human Resource Business Process can be represented as
follows:
Cash Table (CashAcctNo, AcctType)
Department Table (DeptNo, DeptDescription)
Hours Worked Table (EmployeeNo, PPEnded, RegularTimeHours, OvertimeHours)
Employee Table (EmployeeNo, EmployeeLastName, EmployeeFirstName,
EmployeeMiddleInitial, EmployeeSSNo, EmployeeAddress1, EmployeeAddress2,
EmployeeCity, EmployeeState, EmployeeZip, EmployeePhone, DateOfBirth,
MaritalStatus, TaxBracket, AllowanceNo, PayStatus, HPayRate, SPayRate,
EmployeeStartDate, DeptNo, JobTitle)
Withholding Table (TaxBracket, TaxRate, FWT, UpperLimit)
Allowance Table (AllowanceNo, AllowanceAmount)
Notice that we did not include the Cash Disbursement Table in our table structure
because it has already been created in Chapter 5.
Tragg's Relational Database Using Access We have created the tables for
you in the other chapters. However, the Payroll Cycle contains a great deal of sensitive
information. Therefore, there is the opportunity to implement controls and constraints as
we build the tables in this cycle. We will start by building the Employee Table.
The Employee Table
The Employee Table holds data regarding the employee's personal information, the
employee's job information, and the employee's payroll information.
1. Click on the Tables object and click on Create table in Design view.
2. The first field will be the EmployeeNo. We will have no need to perform any cal-
culations on this field; therefore, set the Data Type to Text. Set the field as the Primary
Key. Now move to the Field Properties and set the Field Size to 4. The Caption should be
Employee No. It is a required field.
3. The Data Types for the following fields should all be set to Text. The second field
is EmployeeLastName, the Field Size is 30, and the Caption should be Last Name. The
third field is EmployeeFirstName, the Field Size is 20, and the Caption should be First
Name.
4. The fourth field is EmployeeMiddleInitial, the Field Size is 1, and the Caption
should be Middle Initial. We will use an Input Mask for this field to assist the users with
input of the data. In the Input Mask property, type >L. This will ensure than the input is
alphabetic and will convert any lower case input into upper case.
5. The fifth field is EmployeeSSNo, the Field Size is 11, and the Caption is Social
Security No. We will again us~ field. However, this time we will
WE rF~ 4 5D t~}. ,\11
() ()O \1. 00 0'11. ~

