1. Trang chủ
  2. » Công Nghệ Thông Tin

1622 TCS18005 levohongngoc assignment 2

45 26 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Database Design & Development
Tác giả Le Vo Hong Ngoc
Người hướng dẫn Nguyen Van Son
Trường học FPT University
Chuyên ngành Database Design & Development
Thể loại assignment
Năm xuất bản 2022
Thành phố Hanoi
Định dạng
Số trang 45
Dung lượng 1,41 MB

Nội dung

Use an appropriate design tool to design a relational database system for a substantial problem. Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requirements.

ASSIGNMENT FRONT SHEET Qualification TEC Level 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 P2 Page P3 P4 P5 M2 M3 M4 M5 D2 D3  Summative Feedback: Grade: Signature & Date: Page  Resubmission Feedback: Assessor Signature: Date: ASSIGNMENT BRIEF Qualification BTEC Level HND Diploma in Computing Unit number Unit 04: Database Design & Development Assignment title Academic Year Unit Tutor Issue date Submission date IV name and date Submission Format: Format: This assignment is an Individual assignment and specifically including documents: (1) sql file of your code and represent your code to your mananger (tutor) (2) a report document You must use font Calibri size 12, set number of the pages and use multiple line spacing at 1.3 Margins must be: left: 1.25 cm; right: cm; top: cm and bottom: cm The reference follows Harvard referencing system The recommended word limit is 2.000-2.500 words You will not be penalized for exceeding the total word limit The cover page of the report has to be the Assignment front sheet Submission Students are compulsory to submit the assignment in due date and in a way requested by the Tutors The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/ Note: The Assignment must be your own work, and not copied by or from another student or from books etc If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style Make sure that you know how to reference properly, and that understand the guidelines on plagiarism If you not, you definitely get fail Unit Learning Outcomes: Page 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 (Assignment 2) Once the designs have been accepted by your manager you have been asked to: 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: Assessing whether meaningful data has been extracted through the use of query tools to produce appropriate management information Evaluating the effectiveness of the database solution in relation to user and system requirements, and suggest improvements 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 Page 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 M2 Implement a fully functional LO2 & database system which includes system D2 Evaluate the effectiveness of the security and database maintenance database solution in relation to user and system requirements, and suggest improvements M3 Assess whether meaningful data P3 Implement a query language into the relational database system has been extracted through the use of query tools to produce appropriate management information 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 Page D3 Assess any future improvements that may be required to ensure the continued effectiveness of the database system Table of Contents 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: 10 Database Development and Evaluation 11 2.1 Code Snippets to create each table for database Human Resources Managerment 11 2.1.1 Create table Department 11 2.1.2 Create table Employees 11 2.1.3 Create table Logins 11 2.1.4 Create table Attendances 11 2.1.5 Create table Evaluations 12 2.1.6 Create table Salaries 12 2.1.7 Create table Employee_Vacations 12 2.1.8 Create table Vacations 12 2.1.9 Create table Trainings 13 2.2 Code snippets to insert some sample data for each table 13 2.2.1 Department 13 2.2.2 Employees 13 2.2.3 Logins 16 2.2.4 Attendances 19 2.2.5 Evaluations 21 2.2.6 Salaries 23 2.2.7 Employee_Vacations 25 2.2.8 Vacations 26 Page 2.2.9 Trainings 29 User Interface And Querries 33 3.1 Querri to support the functionalties Insert data 33 3.2 Querri to support the functionalties Update Data 33 3.3 Querri to support the functionalties DELETE Data in table 34 3.4 Querri to support the echancement of the interface to the above functionalities SEARCH validate Data in table 36 3.4.1 List All Employee belong Departments 36 3.4.2 Total Salary of all employee 36 3.4.3 Total Salary of all employee use ORDER BY 37 3.4.4 Select TOP 10 38 3.5 Create Store Procedures 39 3.5.1 Employees 39 3.5.2 Salary 40 3.5.3 Employee have SALRAY elong TOP 10 41 Page 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 Page - Electronic working will be easy to completion tasks - Also there are data facilitates retrieval and interact with them - The system flexible to add, delete, edit for employee record and all information belong to human resources management 1.3 Problem definition 1.3.1 Goals The aim of this study is to build the human resources management system to increase the efficiency of the performance and the safety of the decisions taken and the advancement of the institution The researcher will study the human resource management system requirements used in any company in order to build a human resource management system efficiently 1.3.2 Objectives We will build a web-based human resource management system (HRMS) to increase the performance and organization of the entire range of human resources management services by developing these sections: - Rules section - Compute the net salary after adding salary, promotions percentage and loans - Detailed reports section - Direct email communication - Statistical data charts - Training section - Vacations section - Salary - Attendance 1.3.3 Critical success factors Increased performance of the entire range of human resources management services Provide a single point of contact for customers to take human resources management system (HRMS) procedures or to request any clarification Expand the coverage of the human resources management system (HRMS) to include the entire human resources services, including human resources management system (HRMS) planning, performance management and Internet recruitment systems The human resources management system (HRMS) will allow for trend analysis and reporting 1.3.4 Organization chart and responsibilities This table will present all activities that will be developed on the human ressystem, objective of every activity and the target audiences for each activity Page 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 How to realize the change of data on the system? To represent all data on thesystem Managing communication with whole system members Representing data on the system in graphs and statistics Employees who are members on human resource management system (HRMS) 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 Human resources provide benefits to an organization in a fashion similar to the manner in which financial and physical resources provide benefits Page INSERT [dbo].[Vacations] ([Vacation_ID], [Vacation_Total_Day], [Vacation_from_date], [Vacation_to_date], [Employee_ID], [VA_DE_ID]) VALUES (34, N'12', CAST(N'2020-11-22' AS Date), CAST(N'2020-12-04' AS Date), 3996, 123) GO 2.2.9 Trainings INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (23, N'ban hang', N'ban hang', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (24, N'ban hang', N'ban hang', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (25, N'ban hang', N'ban hang', 999) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (26, N'ban hang', N'ban hang', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (27, N'ban hang', N'ban hang', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (28, N'ban hang', N'ban hang', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (29, N'ban hang', N'ban hang', 2997) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (30, N'ban hang', N'ban hang', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (31, N'thi truong', N'thi truong', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (32, N'thi truong', N'thi truong', 999) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (33, N'thi truong', N'thi truong', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (34, N'thi truong', N'thi truong', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (35, N'thi truong', N'thi truong', 2442) GO Page 29 INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (36, N'thi truong', N'thi truong', 2997) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (37, N'thi truong', N'thi truong', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (38, N'thi truong', N'thi truong', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (39, N'thi truong', N'thi truong', 999) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (40, N'HR', N'HR', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (41, N'HR', N'HR', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (42, N'HR', N'HR', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (43, N'HR', N'HR', 2997) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (44, N'HR', N'HR', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (45, N'HR', N'HR', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (46, N'HR', N'HR', 999) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (47, N'Tuyen Dung', N'Tuyen Dung', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (48, N'Tuyen Dung', N'Tuyen Dung', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (49, N'Tuyen Dung', N'Tuyen Dung', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (50, N'Tuyen Dung', N'Tuyen Dung', 2997) GO Page 30 INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (51, N'Tuyen Dung', N'Tuyen Dung', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (52, N'Tuyen Dung', N'Tuyen Dung', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (53, N'Tuyen Dung', N'Tuyen Dung', 999) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (54, N'Tuyen Dung', N'Tuyen Dung', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (55, N'Tuyen Dung', N'Tuyen Dung', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (56, N'Tuyen Dung', N'', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (57, N'Tuyen Dung', N'', 2997) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (58, N'HR', N'', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (59, N'HR', N'', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (60, N'HR', N'', 999) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (61, N'HR', N'', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (62, N'HR', N'', 2442) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (63, N'thi truong', N'', 333) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (64, N'thi truong', N'', 444) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (65, N'thi truong', N'', 999) GO Page 31 INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (66, N'thi truong', N'', 777) GO INSERT [dbo].[Tranings] ([Training_ID], [Training_title], [Training_description], [Employee_ID]) VALUES (67, N'thi truong', N'', 2442) GO Page 32 User Interface And Querries 3.1 Querri to support the functionalties Insert data - Table Department INSERT [dbo].[Departments] ([Department_ID], [Department_title]) VALUES (11, N'Giám d?c') GO - Table Employee INSERT [dbo].[Employees] ([Employee_ID], [Employee_password], [Employee_Email], [Employee_Name], [Employee_Address], [Employee_Mobile], [Department_ID]) VALUES (333, N'12345', N'EMP01@gmail.com', N'trung', N'Qu?n 1', N'98754321', 11) GO 3.2 Querri to support the functionalties Update Data CODE SNIPETS UPDATE update Employees set Employee_Mobile = '1111111111', Employee_password = '%5!Aphasic' where Employee_ID = 333 update Employees set Employee_Mobile = '22222222222', Employee_password = '%5!Aphasic' where Employee_ID = 444 Page 33 - Befor update - After update 3.3 Querri to support the functionalties DELETE Data in table CODE SNIPETS UPDATE delete from Logins where Employee_ID in (select Employee_ID from Employees where Employee_ID = 777) delete from Logins where Employee_ID in (select Employee_ID from Employees where Employee_Name like '%nh') - - Page 34 Befor DELETE - Page 35 After DELETE 3.4 Querri to support the echancement of the interface to the above functionalities SEARCH validate Data in table 3.4.1 List All Employee belong Departments select E.Department_ID, E.Employee_Name, E.Employee_password, E.Employee_Email,E.Employee_Mobile, D.Department_title from Employees E, Departments D where E.Department_ID = D.Department_ID go 3.4.2 Total Salary of all employee select e.Employee_Name, e.Employee_Address, e.Employee_Mobile, s.Salary, s.Bonus, s.Loan, (s.Salary+s.Bonus-s.Loan) as Total from Employees E, Salaries S where E.Employee_ID = S.Employee_ID go Page 36 3.4.3 Total Salary of all employee use ORDER BY select e.Employee_Name, e.Employee_Address, e.Employee_Mobile, s.Salary, s.Bonus, s.Loan, (s.Salary+s.Bonus-s.Loan) as Total from Employees E, Salaries S where E.Employee_ID = S.Employee_ID ORDER BY e.Employee_Name, SALARY go Page 37 3.4.4 Select TOP 10 select TOP 10 e.Employee_Name, e.Employee_Address, e.Employee_Mobile, s.Salary, s.Bonus, s.Loan, (s.Salary+s.Bonus-s.Loan) as Total from Employees E, Salaries S where E.Employee_ID = S.Employee_ID go Page 38 3.5 Create Store Procedures 3.5.1 Employees CREATE PROCEDURE SelectAllEMployees AS SELECT * FROM Employees EXEC SelectAllEMployees; go Page 39 3.5.2 Salary CREATE PROCEDURE SelectAllSalary AS select e.Employee_Name, e.Employee_Address, e.Employee_Mobile, s.Salary, s.Bonus, s.Loan, (s.Salary+s.Bonus-s.Loan) as Total from Employees E, Salaries S where E.Employee_ID = S.Employee_ID EXEC SelectAllSalary; Go Page 40 3.5.3 Employee have SALRAY elong TOP 10 CREATE PROCEDURE SelectAllSalaryTop10 AS select top 10 e.Employee_Name, e.Employee_Address, e.Employee_Mobile, s.Salary, s.Bonus, s.Loan, (s.Salary+s.Bonus-s.Loan) as Total from Employees E, Salaries S where E.Employee_ID = S.Employee_ID EXEC SelectAllSalaryTop10; Go Page 41 Page 42 REFERENCES [1] FARNHAM, D & J PIMLOTT (1992), Understanding industrial relations London [2] ARMSTRONG, M (1995), A Handbook of Personnel Management Practice London [3] Myriaaison (2014), the waterfall model explained [4] James Rumbaugh, et al: The Unified Modeling Language Reference Manual, Addison-Wesley [5]freeprojectz, [online] Available at: https://www.freeprojectz.com/dfd/human-resource-managementsystemdataflow-diagram [Accessed 24 October 2020] [6] freeprojectz,[online] Available at: https://www.freeprojectz.com/entity-relationship/human-resourcemanagementsystem-er-diagram [Accessed 24 October 2020] [7] creately,[online] Available at https://creately.com/diagram/example/h88w3c102/HR/Management/System [Accessed 24 October 2020] [8] Why to Learn SQL? , [online] Available at: https://www.tutorialspoint.com/sql/index.htm [Accessed 24 October 2020] [9] Learning SQL, [online] Available at: https://www.w3schools.com/sql/default.asp [Accessed 24 October 2020] [10] Semtek.com.vn, (2019) Tìm hiểu phần mềm web server phổ biến nay, [online] Available at: https://www.semtek.com.vn/web-server-2/ [Accessed 24 October 2020] [11] azure.microsoft.com powerful (August 12, 2019) Six ways we’re making Azure reservations even more, [online] Available at: https://azure.microsoft.com/en-us/blog/6-ways-were-making-azure-reservationseven-more-powerful/ [Accessed 24 October 2020] Page 43 ... 19 2. 2.5 Evaluations 21 2. 2.6 Salaries 23 2. 2.7 Employee_Vacations 25 2. 2.8 Vacations 26 Page 2. 2.9 Trainings... [Vacation_to_date], [Employee_ID], [VA_DE_ID]) VALUES (22 , N' 12' , CAST(N '20 20-11-10' AS Date), CAST(N '20 20-11 -22 ' AS Date), 26 64, 123 ) GO Page 27 INSERT [dbo].[Vacations] ([Vacation_ID], [Vacation_Total_Day],... 13 2. 2 Code snippets to insert some sample data for each table 13 2. 2.1 Department 13 2. 2 .2 Employees 13 2. 2.3 Logins 16 2. 2.4

Ngày đăng: 07/06/2022, 13:51

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w