Você está na página 1de 8

Imad Junaid Database Assignment Student number:

060401113

Description of Problem

This database endeavors to provide with information regarding Labor (employees) and all
their information relating to the factory in which they work in. The data also includes the
names, addresses, sex, wage rates and their respected position at which each individual is
working in.

Furthermore, the database also entails the schedule of the employees of the factory. It
includes a catalogue of the work order which every person is to do and detailed personal
information of the employees.

The database contains all the indispensable details of the employees that would suffice all
the queries and requirements of the employers. All necessary information regarding
employee number, costs and number of hours worked are inclusive in the database.

This database is especially designed for the owners of the Factory, all the requirements and
necessities of the employers are taken care of, and database is created in a normalized
form. There are three major areas of the database, employees, labor and work orders. They
are further divided. The following is the entity relation model of the database.

Entity Relation Model:

1 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

Entity Relation Model of database

Normalized Relations

2 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

Work Orders
• Wono (primary key) : Work order number; 2 chars, starting with alpha
• Descr: This is the Work Order description; 15 chars; optional
• Std: These are the standard hours required
• Accum: These are the accumulated hours required

Design view of table ‘work orders’

Table ‘work orders’

This table is related to another table, and when the + sign is pressed more detail is displayed. The
employee number, Start date, End date and hours worked are shown.

Table ‘work orders’ showing relationships

3 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

Faculty
• EmpNo (primary key): This shows the employee identification number
• fName: employee first name
• Lname: employee last name (required)
• Rate: Employee’s hourly rate required; must be >0
• MgrNo: Manager’s employee number; optional in this sample database

Design view of table ‘Employees’

Table ‘Employees’

This table is related to another table, and when the + sign is pressed, more detail is displayed. The first
name, last name, Rate and manager’s employee number are shown.

Table ‘employees’ showing relationships

4 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

Labor ticket
• EmpNo (primary key)- Employee number, foreign key to employees table
• Wono (primary key)- Work order number; foreign key to work_orders table
• Start- Start date for this labor ticket; required, default to today’s date
• End- End date for this labor ticket; optional, if present must be >= start date
• Hours- Hours worked for this work order by this employee; optional, must be a positive number

Design view of table ‘Labor tickets’

Table ‘Labor tickets’

5 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

Queries

The query is used to find employees for all the labor working in the factory. Required fields are acquired
from table “LABOR’ and ‘EMPLOYEES’

Design View of query “Labor Employee”

Query “Labor Employee”

6 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

Designs for Data Input Screens

Adding a new employee form

Above is the form to add a new employee to the factory. The text is inserted in the text box available.
Description of how a system is operated

Figure 1

7 University College Lahore, Pakistan


Imad Junaid Database Assignment Student number:
060401113

The database of figure 1 is divided into four parts, these being the Employee Report, Work Orders Report,
Labor Report and Close Form. By clicking on the Employee report, we would get access to a new page
providing us with the respective employee report and its details.
This is how the whole system works, the user friendly menus are provided to remove any difficulties the
user might face while using the database.

Examples of Reports

8 University College Lahore, Pakistan

Você também pode gostar