You are on page 1of 16

Term Project

By Tyler Aycock

Eds Construction Company

Problem Solving

Relational Database Format

Proper BCNF

Needed to normalize the tables

Created five tables

Employee

Job_Title

Equipment_ID

Work_Order

Billing

All with Primary Keys

Relationships

All one to many relationships

Both Primary and Foreign Keys

Referential Integrity

Cascade Update and Delete

Employee Table

All major records regarding employees

PK: Emp_ID

Mgr_Freq indicates Manager Status

Job_Title Table

Description of the different Jobs

PK: Emp_Job_ID

Work_Order Table

Shows all of the different worksites

WORder_Name is the customer

PK: WOrder_ID

Equipment_ID Table

Displays all the information regarding the Companys equipment

PK: Equip_ID

Billing Table

This shows all of the different accounts the company has

PK: Accounting Number

SQL

Inner Join Command

Brought together Job_Title and Employee

Common column was Emp_Job_ID = Job_ID

Company Employee/Manager Queries

Used Temp Table

Defined who managers and Employees were

Total_Equipment_Costs Query

Shows the total cost of all equipment used

Total Costs Formula:

([Cost_Per_Hr])*([Hours_Worked])

Employee Form

Billing Form

Billing Report

Employee Report

You might also like