Database Design & Development: HR Management System for FPT University, Assignments of Database Management Systems (DBMS)

Database Management Systems (DBMS) 1622

Typology: Assignments

2019/2020

Uploaded on 09/07/2021

fg-hcm-le-vo-hong-ngoc
fg-hcm-le-vo-hong-ngoc 🇻🇳

4.8

(8)

4 documents

1 / 45

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Page 1
ASSIGNMENT 1 FRONT SHEET
Qualification
TEC Level 5 HND Diploma in Computing
Unit number and title
Unit 04: Database Design & Development
Submission date
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Le Vo Hong Ngoc
Student ID
TCS18005
Class
GCS0805_PPT
Assessor name
Nguyen Van Son
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
P3
P4
P5
M2
M3
M4
M5
D2
D3
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d

Partial preview of the text

Download Database Design & Development: HR Management System for FPT University and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 04: Database Design & Development

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Le Vo Hong Ngoc Student ID TCS 18005

Class GCS0805_PPT Assessor name Nguyen Van Son

Student declaration

I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice.

Student’s signature

Grading grid

P2 P3 P4 P5 M2 M3 M4 M5 D2 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date:

Signature & Date:

LO2 Develop a fully functional relational database system, based on an existing system design.

LO3 Test the system against user and system requirements.

LO4 Produce technical and user documentation

Assignment Brief and Guidance:

You are employed as a Database Developer for a large IT consultancy company. The company has been

approached by FPT university which is expanding due to the growth of the number of students. FPT is

currently facing difficulties in dealing with managing the university. It decided to develop several academic

systems to manage the university easier including: Online Library system, Student Grading System,

Attendance System, CMS System, Scheduling System, Enrolment Systems, and so on.

You are tasked to select one of those systems to develop database for FPT university. Your tasks are to:

Work with FPT to find out about current requirements for each system

Analyze the requirements and produce clear statements of user and system requirements.

Design a relational database system using appropriate design tools and techniques

Develop a fully functional relational database system, based on an existing system design.

Test the system against user and system requirements.

Produce technical and user documentation

Part 2 (Assignment 2)

Once the designs have been accepted by your manager you have been asked to:

  1. Develop the database system using evidence of user interface, output and data validations and

querying across multiple tables.

You want to include more than just the basics so you will implement a fully functional database system

which will include system security and database maintenance features.

You have decided to implement a query language into the relational database system. The developed

system will be demonstrated to your manager.

Your manager has asked you to include in the report:

  1. Assessing whether meaningful data has been extracted through the use of query tools to produce

appropriate management information.

  1. Evaluating the effectiveness of the database solution in relation to user and system requirements,

and suggest improvements.

  1. Once the system has been developed, you will test the system and your manager will complete a

witness statement indicating how your tests are performing against user and system requirements.

You will produce a brief report assessing the effectiveness of the testing, including an explanation of the

choice of test data used.

  1. Lastly you will produce technical and user documentation which will be given to the company.

You want to provide some graphical representations for ease of reference in the technical guide, so you

have decided to produce a technical and user documentation for a fully functional system, including

diagrams showing movement of data through the system, and flowcharts describing how the system

works.

Learning Outcomes and Assessment Criteria

Pass Merit Distinction

LO2 Develop a fully functional relational database system, based on an existing system design.

LO3 Test the system against user and system requirements.

LO4 Produce technical and user documentation

P2 Develop the database system with evidence of user interface, output and data validations, and querying across multiple tables.

P3 Implement a query language into the relational database system.

M2 Implement a fully functional database system which includes system security and database maintenance.

M3 Assess whether meaningful data has been extracted through the use of query tools to produce appropriate management information.

LO2 & 3 D2 Evaluate the effectiveness of the database solution in relation to user and system requirements, and suggest improvements.

P4 Test the system against user and system requirements.

M4 Assess the effectiveness of the testing, including an explanation of the choice of test data used.

P5 Produce technical and user documentation.

M5 Produce technical and user documentation for a fully functional system, including ER Diagram and normalization statements and describing how the system works.

D3 Assess any future improvements that may be required to ensure the continued effectiveness of the database system.

    1. Introduction.
    • 1.1. Overview
    • 1.2. System description
    • 1.3. Problem definition
      • 1.3.1. Goals
      • 1.3.2. Objectives
      • 1.3.3. Critical success factors
      • 1.3.4. Organization chart and responsibilities
    • 1.4. Feasibility study:
    • 1.5. Human resources management general rules:
    • 1.6. literature review:
      • 1.6.1. Introduction
      • 1.6.2. Human resource information systems types:
    1. Database Development and Evaluation
    • 2.1. Code Snippets to create each table for database Human Resources Managerment
      • 2.1.1. Create table Department
      • 2.1.2. Create table Employees
      • 2.1.3. Create table Logins
      • 2.1.4. Create table Attendances
      • 2.1.5. Create table Evaluations
      • 2.1.6. Create table Salaries
      • 2.1.7. Create table Employee_Vacations
      • 2.1.8. Create table Vacations
      • 2.1.9. Create table Trainings
    • 2.2. Code snippets to insert some sample data for each table
      • 2.2.1. Department
      • 2.2.2. Employees
      • 2.2.3. Logins
      • 2.2.4. Attendances
      • 2.2.5. Evaluations
      • 2.2.6. Salaries
      • 2.2.7. Employee_Vacations
      • 2.2.8. Vacations
      • 2.2.9. Trainings
    1. User Interface And Querries
    • 3.1. Querri to support the functionalties Insert data
    • 3.2. Querri to support the functionalties Update Data
    • 3.3. Querri to support the functionalties DELETE Data in table
    • table 3.4. Querri to support the echancement of the interface to the above functionalities SEARCH validate Data in
      • 3.4.1. List All Employee belong Departments
      • 3.4.2. Total Salary of all employee
      • 3.4.3. Total Salary of all employee use ORDER BY
      • 3.4.4. Select TOP
    • 3.5. Create Store Procedures
      • 3.5.1. Employees
      • 3.5.2. Salary
      • 3.5.3. Employee have SALRAY elong TOP

1. Introduction. 1.1. Overview For more than a century now, human resource management, as a discipline and practice in the management of people in an organization, has evolved and developed into different areas. These disciplines and practices have gone through a process of trial and error, theory building and testing of various concepts by practicing managers and academics. The underlying forces behind the evolution and development of human resource management have been (and still are) mainly environmental, and the quest for knowledge of better ways of acquiring and utilizing labor. The changing organizational environment in the marketplace pushed managers to improve efficiency in the production and service delivery processes by increasing their ability to use the best practices of people management at the time. That is, employee management techniques or methods that would improve production, reduce service delivery costs, and at the same time ensure sustained availability of competent staff in the organization. This study is devoted to providing organizations with a human resource management system of the evolution and development of human resource management and the way it works and influences people management in contemporary organizations. 1.2. System description Human resources management system (HRMS) was created to include the best practices for service human resources departments within the company and is the work of all employees department. The target group of the system that serves the human resource procedures is special for the employees and managers. This system is also classified according to staff branches and departments as it is classified according to the work of multiple systems; In addition to that it is organized in terms of personnel (promotions - bonuses– trainings- Benefit). This system of work area makes it easy to enter movements daily work , also organizes holidays, whether in the day or hours , Emission a monthly report full and detailed and accurate for all staff movements within a specified period (work required -work actual ). The proposed system will allow improve perform the job functions of the employees department and faculty by provide system allows: - Tasks are dispensed paper charged for the time and effort - Keep electronic records of employee's information, benefits, education, adjustments, evaluations and requests instead of paper files that need extra space.

Table (1.1) : Organization chart and responsibilities.

Question Objective Activity Target Audiences

How to control on the access of the system?

Making saved authentication to the system

Developing Rules section

HRMS give employee rules to access any par of the system

How to Compute the net Salary for the employees?

To compute the net salary for everyone on the system

Computing net Salary after adding Salary, promotions percentage and loans.

HRMS compute net salary for all employees on the system.

How to get all Detailed information about any part of the system?

To get detailed reports about any part of the system

Developing Detailed Reports section

HRMS will extract all data on the system

How to make direct communicate with the employees?

To communicate with all employees quickly

Managing communication with whole system members.

Employees who are members on human resource management system (HRMS). How to realize the change of data on the system?

To represent all data on thesystem

Representing data on the system in graphs and statistics

All data on the system stored on database.

1.4. Feasibility study:

Information has been collected by reference to sources, written references and information published in scientific, research and literary sites on the Internet

1.5. Human resources management general rules:

The human resources management team suggests to the management team how to strategically

manage people as business resources. This includes managing recruiting and hiring employees,

coordinating employee benefits and suggesting employee training and development strategies. In this

way, general rules related to human resources management system.

1. Human resources provide benefits to an organization in a fashion similar to the manner in which financial and physical resources provide benefits.

2. The benefits associated with both conventional assets and human resources have value to the organization because these benefits contribute in some way to the accomplishment of the organizational goals. 3. The acquisition of human resources typically involves an economic cost and the benefits associated with such resources can personally be expected to contribute to the economic effectiveness. It follows, therefore, that these benefits are essentially economic in nature and are subject to measurement in financial terms. 4. Since the usual accounting definition of an asset involves the right to receive economic benefits in the future, human assets are appropriately classified as accounting assets. 5. It is theoretically possible to identify and measure human resource cost and benefits within an organization. 6. Information with respect to human resource costs and benefits should be useful in the process of planning, controlling, evaluating and predicting organizational performance.

1.6. literature review:

1.6.1. Introduction

Human resources are those who make up the workforce of some particular organization, economy or business sector. The "human capital" term may be understood as a synonym to the "human resources’" one. But at the same time, “human capital” one usually refers to a narrower view such as the knowledge the individuals embody as well as the economic growth. Some other terms that sometimes may be used instead of the “human resources” one include "talent", "manpower", "labor", "people" or "personnel". Any human-resources department of some organization is expected to perform human resource management, overseeing different aspects of employment (e.g., compliance with labor law and some of the employment standards), some aspects of dismissal and recruitment, as well as an administration of the employees’ benefits. Any human resources manager is known to be in charge for determining the work-related needs of the staff, using temporary staff or hiring employees in order to fill such needs, recruiting and training the best employees, supervise their work, managing employees’ relations, payrolls, benefits and compensations, preparing employees’ personal policies and records, ensuring high performance, ensuring equal opportunities for all the employees, dealing with discrimination and other performance issues. Ensuring that human resources practices conform to the regulations and pushing the employees' motivation so they achieve more within their organization, human resources managers might find the concept draw pro software a useful tool for making the needed human resources related drawings. The human resources flowcharts solution can be used while creating the human resources related drawings in the concept draw pro diagramming and drawing software, providing with a comprehensive collection of human resources themed icons, connectors, and images from the available stencil libraries, helping illustrating flowcharts, info graphics and workflow diagrams. Using this solution for mapping the human resources related management processes on every phase of human resource management, including the hiring process, the process of recruitment, payroll systems and human

This kind of systems can lead to a number of decisions beyond merely supporting the operational decision to retain, promote, transfer, or terminate a single employee. 1.6.2.5. FPT University reporting and compliance information systems FPT University reporting and compliance information systems provide information needed both to maintain compliance with government regulations and to improve productivity and reduce costs associated with employees

2. Database Development and Evaluation

2.1. Code Snippets to create each table for database Human Resources Managerment 2.1.1. Create table Department create table Departments ( Department_ID int primary key not null, Department_title varchar(20), ) Go

2.1.2. Create table Employees create table Employees( Employee_ID int primary key not null, Employee_password varchar (20), Employee_Email varchar (50), Employee_Name varchar (50), Employee_Address varchar (50), Employee_Mobile varchar (11), Department_ID int FOREIGN KEY REFERENCES Departments(Department_ID) ) Go

2.1.3. Create table Logins create table Logins( Username varchar (50) primary key not null, [Password] varchar (50), [Role] bit, Employee_ID int FOREIGN KEY REFERENCES Employees(Employee_ID) ) Go

2.1.4. Create table Attendances

create table Attendances( ID int primary key not null, Att_Type varchar (50), Att_time_date datetime, Employee_ID int FOREIGN KEY REFERENCES Employees(Employee_ID)

go

2.1.5. Create table Evaluations

create table Evaluations ( Eval_ID int primary key not null, Eval_value float, Notes text, Employee_ID int FOREIGN KEY REFERENCES Employees(Employee_ID) ) go

2.1.6. Create table Salaries

create table Salaries( ID int primary key not null, Salary flo0at, Bonus float, Loan float, Last_update Date, Employee_ID int FOREIGN KEY REFERENCES Employees(Employee_ID) ) go

2.1.7. Create table Employee_Vacations

create table Vacations( Vacation_ID int primary key not null, Vacation_Total_Day varchar(50), Vacation_from_date date, Vacation_to_date date, Employee_ID int FOREIGN KEY REFERENCES Employees(Employee_ID), VA_DE_ID int FOREIGN KEY REFERENCES Employee_Vacations(VA_DE_ID) ) Go

2.1.8. Create table Vacations

create table Employee_Vacations( VA_DE_ID int primary key not null, Vacation_title varchar(50), ) Go

INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (888, N'12345', N'[email protected]', N'nam', N'Qu?n 6', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (999, N'12345', N'[email protected]', N'thinh', N'Qu?n 7', N'98754321', 11) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1110, N'12345', N'[email protected]', N'trinh', N'Qu?n 8', N'98754321', 12) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1221, N'12345', N'[email protected]', N'nam', N'Qu?n 9', N'98754321', 11) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1332, N'12345', N'[email protected]', N'long', N'Qu?n 10', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1443, N'12345', N'[email protected]', N'thang', N'Qu?n 11', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1554, N'12345', N'[email protected]', N'thanh', N'Qu?n 12', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1665, N'12345', N'[email protected]', N'tân', N'Qu?n 13', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1776, N'12345', N'[email protected]', N'm?t', N'Qu?n 14', N'98754321', 11) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1887, N'12345', N'[email protected]', N'lam', N'Qu?n 15', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (1998, N'12345', N'[email protected]', N'nhi', N'Qu?n 16', N'98754321', 12) GO

INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2109, N'12345', N'[email protected]', N'hi?n', N'Qu?n 17', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2220, N'12345', N'[email protected]', N'khoi', N'Qu?n 18', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2331, N'12345', N'[email protected]', N'minh', N'Qu?n 19', N'98754321', 13) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2442, N'12345', N'[email protected]', N'ninh', N'Qu?n 20', N'98754321', 12) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2553, N'12345', N'[email protected]', N'hat', N'Qu?n 21', N'98754321', 14) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2664, N'12345', N'[email protected]', N'ca', N'Qu?n 22', N'98754321', 14) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2775, N'12345', N'[email protected]', N'thiên', N'Qu?n 23', N'98754321', 14) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2886, N'12345', N'[email protected]', N'thân', N'Qu?n 24', N'98754321', 12) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (2997, N'12345', N'[email protected]', N'tu?n', N'Qu?n 25', N'98754321', 14) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (3108, N'12345', N'[email protected]', N'mây', N'Qu?n 26', N'98754321', 14) GO INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (3219, N'12345', N'[email protected]', N'lành', N'Qu?n 27', N'98754321', 14) GO

INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user06', N'12345', 0, 888) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user07', N'12345', 1, 999) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user08', N'12345', 1, 1110) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user09', N'12345', 0, 1221) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user10', N'12345', 1, 1332) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user11', N'12345', 0, 1443) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user12', N'12345', 1, 1554) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user13', N'12345', 0, 1665) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user14', N'12345', 1, 1776) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user15', N'12345', 0, 1887) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user16', N'12345', 1, 1998) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user17', N'12345', 0, 2109) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user18', N'12345', 1, 2220) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user19', N'12345', 0, 2331) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user20', N'12345', 1, 2442) GO

INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user21', N'12345', 0, 2553) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user22', N'12345', 1, 2664) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user23', N'12345', 0, 2775) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user24', N'12345', 1, 2886) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user25', N'12345', 0, 2997) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user26', N'12345', 1, 3108) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user27', N'12345', 0, 3219) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user28', N'12345', 1, 3330) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user29', N'12345', 0, 3441) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user30', N'12345', 1, 3552) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user31', N'12345', 0, 3663) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user32', N'12345', 1, 3774) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user33', N'12345', 0, 3885) GO INSERT [dbo].[Logins] ([Username], [Password], [Role], [Employee_ID]) VALUES (N'user34', N'12345', 1, 3996) GO