1. IT 8100 Database Architecture And Design
Answer:
Database Implementation
In this task, we shall be implementing our database in Microsoft Access. The aim of the
assessment is to be able to create database tables each having appropriate Primary Keys
and Foreign Keys along with the relationships. We also aim at creating forms, queries/views
and reports. In this database we have 4 tables: Departments, Employees, Employee Salary
and Employee Savings.
Part 1: Creating Tables
The tables were successfully created in access using the table design option and below is a
screenshot for the relationships.
Part 2: Creating Forms
The forms below have been created to allow data input into the tables:
Departments Form
The departments form is used to enter department details in the department table. The
form is as shown below:
Employees Table
The employees form is used to enter employee details in the employee table. The form is as
shown below:
Employees Salary
The employee’s salary form is used to enter employee’s salary details in the employee
2. salary table. The form is as shown below:
Employee Savings
The employee’s saving form is used to enter employee’s saving details in the employee
saving table. The form is as shown below:
Part 3: Queries/Views:
The following queries have been developed:
Query 1: Employee Departments
This query returns the Employee ID, Name, Email, Phone Number, Position and Department
Name. The query is as a result of joining the employees and department tables.
Query 2: Employees Count Per Department
This query returns the number of employees from each department. The query results are
obtained by joining the employees and department tables and using the COUNT aggregate
function to return the number of employees per department.
Query 3: Employee Total Earnings
Since an employee receives salary every month, the query intents to return all the money
earned by each employee. The employee table is joined to the employee salary table and
SUM aggregate function used to return the total salary.
Query 4: Employees Total Savings
Since an employee makes a saving many times, the query intents to return all the money
saved by each employee. The employee table is joined to the employee saving table and
SUM aggregate function used to return the total savings.
3. Part 4: Reports:
Report 1: Employees Departments Report
This report is created from Query 1. The report lists the employee details along with their
department names.
Report 2: Employees Total Earnings Report
This report is created from query 3. The report shows the employee details with their
respective salary totals.
Report 3: Employees Total Savings Report
The report has been created from query 4. It shows the employee details with their
respective total savings.
Report 4: Employees Count Per Department
This report returns the number of employees in each department and has been created
from query 2.
Conclusion
The task of creating a database for employee salaries and savings has been quite interesting.
We have been able to explore Microsoft Access database features such as tables, forms,
queries and reports. We have also been able to create relationships between tables and
come up with a database that is fully normalized to 3NF.