Database Management System
Database Management System
we would like to thank our respected guide Mr Yathish Aradhya B C and Mr Harish
B M, assistance professor, department of CSE, who has helped us a lot in completing
this task, for his or her continuous encouragement and guidance throughout the project
work.
Finally, we also would like to thank the whole teaching and non-teaching staff
of computer science and engineering department.
NAME USN
SANJAY M N 1KI18CS069
SANJAY MURTHY 1KI18CS069
I
ABSTRACT
Employee Management System is a distributed application, developed to maintain the details of
employees working in any organization. It maintains the information about the personal details of
their employees, also the details about the payroll system which enable to generate the payslip. The
application is actually a suite of applications developed using Java.
It is simple to understand and can be used by anyone who is not even familiar with simple
employees’ system. It is user friendly and just asks the user to follow step by step operations by
giving him few options. It is fast and can perform many operations of a company.
This software package has been developed using the powerful coding tools of JAVA at Front End
and Microsoft sql Server at Back End. The software is very user friendly. The package contains
different modules like Employee details. This version of the software has multi-user approach. For
further enhancement or development of the package, user’s feedback will be considered.
TABLE OF CONTENTS
SL.NO CHAPTER P.NO
CHAPTER 1
INTRODUCTION
Employee Management system is an application that enables users to create and store
Employee Records. The application also provides facilities of a payroll system which
enables user to generate Pay lips too. This application is helpful to department of the
organization which maintains data of employees related to an organization.
Java is a platform independent language. Its created applications can be used on a
standalone machine as well as on distributed network. More over applications
developed in java can be extended to Internet based applications.
Thus java was chosen as background to design this application.
Scope
Dept.of.CSE,KIT 8
EMPLOYEE MANAGEMENT SYSTEM
Page
System analysis is the examination of the business problem that organizations plan to
solve with an information system. The main purpose of the systems analysis stage is to
gather information about the existing system in order to determine the requirements for
an enhanced system or a new system.
Proposed system
The world is advancing day by day new technologies come and go, many new methods
are been introduced almost daily, therefore, the demand of the new systems have been
increased in every organization old system have been replaced by new systems, the
question is why? Its because every organization demands excellent quality work more
profit to be earned in short span of time, to gain as much market trust as they can, and
not to forget as quick they can so they can compete with other organizations. New
systems should be i. User friendly ii. More efficient iii. They should provide security
iv.
Fast
As these four are mentioned, my idea will be based upon these.
CHAPTER 3
HARDWARE AND SOFTWARE REQUIREMENTS
Page
Dept.of.CSE,KIT 9
EMPLOYEE MANAGEMENT SYSTEM
SYSTEM SPECIFICATIONS
Since the Administrator and the user are the main target group of our software, we will
only concern about some important functions for the admin and the user.
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
1. Operating System: Windows 10
4. Server: Apache
5. Tool: XAMPP
CHAPTER 4
SYSTEM DESIGN
System design is a process of planning a new business system or replacing an
existing system by defining its components or modules to satisfy the specific
requirements. Before planning, you need to understand the old system thoroughly and
determine how computers can best be used in order to operate efficiently. System
design is a very broad topic. Even a software engineer with many years of working
experience at a top IT company may not be an expert on system design. If you want to
become an expert, you need to read many books, articles, and solve real large scale
system design problems.
Dept.of.CSE,KIT Page 10
EMPLOYEE MANAGEMENT SYSTEM
This repository only teaches you how to handle the system design interview with a
systematic approach in a short time. You can dive into each topic if you have time. Of
course, welcome to add your thoughts.
DATABASE DESIGN
Database design is the organization of data according to the database module that
designer determines what data must be stored and how the data elements interrelate.
With this information, they can begin to fit the data to the database module. Database
management system manages the data accordingly.
Dept.of.CSE,KIT Page 11
EMPLOYEE MANAGEMENT SYSTEM
Dept.of.CSE,KIT Page 12
EMPLOYEE MANAGEMENT SYSTEM
ER-Diagram
ENTITY-RELATIONAL DIAGRAM
Entity relationship model is a popular high level conceptual model. The ER model
describes data as entries, relationship and attributes.
Entities and attributes
The basic object that the ER model represent is an entity, which is a thing in the real
world with an independent existence. An entity may be an object with physical
existence, like a car or may be an object with conceptual existence, like company, a job
etc.
Each entity has a particular property called attribute that describes it.
Dept.of.CSE,KIT Page 13
EMPLOYEE MANAGEMENT SYSTEM
ER-Diagram
Dept.of.CSE,KIT Page 14
EMPLOYEE MANAGEMENT SYSTEM
Data flow -Diagram
The data flow diagram shows the flow of data between different process in business. It is a simple
intuitive method for describing business process without focusing in the detail of computer. The data
flow diagram basically contains the four primary symbols. The process that is any function being
performed which is generally shown by oval in the diagram. The data flow is shown by the element
movement. It is generally represented by the arrow. The data store is the place where the data is being
stored is generally represented by the two parallel lines. Then there is something called as the external
entity which is given by the rectangular box.
IMPLEMENTATION MODULES
SYSTEM IMPLEMENTATIONS
System implementation is the process of bringing the developed system and
turning it over to user. It can be the most crucial stage in achieving a successful new
system and in giving the users confidence that the new system will work and be
effective.
Dept.of.CSE,KIT Page 15
EMPLOYEE MANAGEMENT SYSTEM
For successful implementations of the system, implementation plan is necessary. Its
major elements include test plan, training plans, an equipment installation plan and a
conversion plan. The test plan provides for the preparations of the test ad for testing the
system in a planned, structured manner. Training plan is necessary to ensure that all
people who are associated with the computer related information system have the
necessary knowledge and skills. The important activities are preparations ,equipment
installation and hardware –software checkout.
Conversion is the process if initiating and performing all the physical operations
that result directly in the turnover of the new system to the user. There are two parts of
conversion .The conversion plan is implemented throughout the development phase
into the operational phase. The conversion plan includes procedural conversion,
program conversion and the file conversion. The changeover plan also specifies the
method of change from old to new system. Choices of changeover methods include
parallel operations, immediate replacement and physical changeover.
Dept.of.CSE,KIT Page 16
EMPLOYEE MANAGEMENT SYSTEM
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `370project`
--
-- -------------------------------------------------------
-
--
-- Table structure for table `alogin` --
--
-- Dumping data for table `alogin` --
INSERT INTO `alogin` (`id`, `email`, `password`) VALUES (1,
'admin', 'admin');
-- -------------------------------------------------------
-
--
-- Table structure for table `employee` --
CREATE TABLE `employee` (
Dept.of.CSE,KIT Page 17
EMPLOYEE MANAGEMENT SYSTEM
`id` int(11) NOT NULL,
`firstName` varchar(100) NOT NULL,
`lastName` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` text NOT NULL,
`birthday` date NOT NULL,
`gender` varchar(10) NOT NULL,
`contact` varchar(20) NOT NULL,
`nid` int(20) NOT NULL,
`address` varchar(100) DEFAULT NULL,
`dept` varchar(100) NOT NULL,
`degree` varchar(100) NOT NULL,
`pic` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employee`
--
Dept.of.CSE,KIT Page 18
EMPLOYEE MANAGEMENT SYSTEM
(106, 'Hacker', 'Man', '[email protected]', '1234', '1990-02-02', 'Male', '7575', 5757,
'Underground, Dhaka', 'NetworkSecurity', 'MSc', 'images/hacker.png'),
(107, 'Wonder ', 'Woman', '[email protected]', '1234', '1993-
03-03', 'Female', '4545', 5454, 'USA', 'Defense ', 'MS', 'images/no.jpg'),
(108, 'Andrew', ' Ng', '[email protected]', '1234', '1976- 04-16',
'Male', '758758', 857857, 'USA', 'AI', 'PhD',
'images/download.jpeg'),
(109, 'Ian ', 'Goodfellow', '[email protected]', '1234', '1985-
01-01', 'Male', '852852', 258258, 'USA', 'AI', 'PhD',
'images/1-5.jpg'),
(110, 'Christopher ', 'Manning', '[email protected]',
'1234', '1965-09-18', 'Male', '147147', 741741, 'USA',
'NLP', 'PhD', 'images/download (1).jpeg'),
(111, 'Jon', 'Snow', '[email protected]', '1234', '2011-02-
01', 'Male', '0187282', 112233, 'Winterfell',
'Management', 'BSc.', 'images/jon-snow.jpg');
-- -------------------------------------------------------
-
--
-- Table structure for table `employee_leave` --
--
-- Dumping data for table `employee_leave`
--
Dept.of.CSE,KIT Page 19
EMPLOYEE MANAGEMENT SYSTEM
'Approved'),
(102, 305, '2019-04-07', '2019-04-08', 'Urgent Family
Cause', 'Approved'),
(103, 306, '2019-04-08', '2019-04-08', 'Concert Tour', 'Approved'),
(101, 307, '2019-04-14', '2019-04-30', 'Want to see GOT',
'Pending'),
(105, 308, '2019-04-26', '2019-04-30', 'Launching Tesla
Model Y', 'Pending'),
(111, 309, '2019-04-09', '2019-04-13', 'Visit to Kings
Landing', 'Pending'),
(104, 310, '2019-04-08', '2019-04-09', 'Emergency Leave', 'Pending');
-- -------------------------------------------------------
-
--
-- Table structure for table `project` --
--
-- Dumping data for table `project` --
Dept.of.CSE,KIT Page 20
EMPLOYEE MANAGEMENT SYSTEM
'Submitted'),
(217, 111, 'Do Nothing', '2019-04-02', '2019-04-01', 8, 'Submitted'),
(218, 105, 'Tesla Model X', '2019-04-03', '2019-04-03',
10, 'Submitted'),
(219, 101, 'PHP', '2019-04-07', '0000-00-00', 0, 'Due'),
(220, 110, 'Data Analysis', '2019-04-16', '2019-04-04', 8, 'Submitted'),
(221, 110, 'Data Analysis', '2019-04-16', '2019-04-04', 7,
'Submitted'),
(222, 103, 'Statistical', '2019-04-19', '2019-04-04', 6, 'Submitted'),
(223, 108, 'Software Scema', '2019-04-09', '2019-04-02', 3, 'Submitted'),
(224, 107, 'Security Check', '2019-04-26', '2019-04-05',
9, 'Submitted'),
(225, 109, 'ML', '2019-04-03', '2019-04-04', 6, 'Submitted');
-- -------------------------------------------------------
-
--
-- Table structure for table `rank` --
--
-- Dumping data for table `rank`
--
Dept.of.CSE,KIT Page 21
EMPLOYEE MANAGEMENT SYSTEM
(110, 15),
(111, 8);
-- -------------------------------------------------------
-
--
-- Table structure for table `salary`
--
--
-- Dumping data for table `salary` --
--
Dept.of.CSE,KIT Page 22
EMPLOYEE MANAGEMENT SYSTEM
--
--
Indexes for table `alogin`
--
-- Indexes for table `employee`
--
ALTER TABLE `employee`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `employee_leave`
--
ALTER TABLE `employee_leave` ADD
PRIMARY KEY (`token`),
ADD KEY `employee_leave_ibfk_1` (`id`);
--
-- Indexes for table `project`
--
ALTER TABLE `project`
ADD PRIMARY KEY (`pid`),
ADD KEY `project_ibfk_1` (`eid`);
--
-- Indexes for table `rank`
--
ALTER TABLE `rank`
ADD PRIMARY KEY (`eid`);
--
-- Indexes for table `salary`
--
--
Dept.of.CSE,KIT Page 23
EMPLOYEE MANAGEMENT SYSTEM
--
ALTER TABLE `salary`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
-- AUTO_INCREMENT for table `employee`
--
ALTER TABLE `employee`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=112;
--
-- AUTO_INCREMENT for table `employee_leave`
--
ALTER TABLE `employee_leave`
MODIFY `token` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=311;
--
-- AUTO_INCREMENT for table `project`
--
ALTER TABLE `project`
MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=226;
--
-- Constraints for dumped tables
--
--
Dept.of.CSE,KIT Page 24
EMPLOYEE MANAGEMENT SYSTEM
--
--
-- Constraints for table `employee_leave`
--
ALTER TABLE `employee_leave`
ADD CONSTRAINT `employee_leave_ibfk_1` FOREIGN KEY
(`id`) REFERENCES `employee` (`id`) ON DELETE CASCADE ON UPDATE
CASCADE;
--
Dept.of.CSE,KIT Page 25
EMPLOYEE MANAGEMENT SYSTEM
--
Constraints for table `project`
--
ALTER TABLE `project`
ADD CONSTRAINT `project_ibfk_1` FOREIGN KEY (`eid`)
REFERENCES `employee` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `rank`
--
ALTER TABLE `rank`
ADD CONSTRAINT `rank_ibfk_1` FOREIGN KEY (`eid`)
REFERENCES `employee` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `salary`
--
ALTER TABLE `salary`
ADD CONSTRAINT `salary_ibfk_1` FOREIGN KEY (`id`)
REFERENCES `employee` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CHAPTER 5
SOFTWARE TESTING
SYSTEM TESTING
The testing phase is an important part of software development. It is the processes of
finding errors and missing operations and also a complete verifications to determine
whether the objectives , requirements are satisfied. Software testing is carried out in
three steps,
Dept.of.CSE,KIT Page 26
EMPLOYEE MANAGEMENT SYSTEM
Levels in testing:
1) Unit testing
2) Integration testing
3) Validation testing
The first step includes unit testing where each module is tested to provide its
correctness to determine any missing operations and to verify whether the objectives
have been met. Errors are noted down and corrected immediately. Unit testing is the
important and major part of the project. So errors are rectified easily in particular
modules and program quality is increased. In this project, entire system is divided into
several modules.
Second step include integration testing. If we need not to be the case that
software whose modules when run individually and showing perfect result with also
show perfect result as whole .The individual modules are clipped under this major
module and tested again and verified the results. A module can have inadvertent,
adverse effect on any other on the global data structure causing serious problems.
UNIT TESTING
It is the process of taking each program modules and runs in isolation from the rest of
the modules, by using prepared inputs and comparing the results with the results
predicted by the specifications and design of modules .This enables the tester to detect
errors in coding and logic that are contained within that module one.
INTEGRATION TESTING
VALIDATION TESTING
Dept.of.CSE,KIT Page 27
EMPLOYEE MANAGEMENT SYSTEM
At the culmination of integration testing, software is completely assembled as a
package; interfacing errors have been recovered and corrected and a final series of a
software testsvalidation tests begin. Validation testing can be defined in many ways but
a simple definition is that validation succeeds when the software functions in a manner
that can be reasonably expected by the customer.
In validation testing if user wants to enter the numeric value he can only enter
the numeric value not the text value. For e.g.: in phone number field user can only enter
numeric value to it. The system is user friendly with user guide and messages to explain
further procedures. An attempt has been made to perfect the process by incorporating
validation at each level.
TEST CASES
During Test Cases that are good at revealing the presence of faults is central to
successful testing. The reason for this is that if there is a fault in the program, the
program can still provide the expected behaviour on the certain inputs. Only for the set
of inputs the faults that exercise the fault in the program will the output of the program
devise from the expected behaviour. Hence, it is fair to say that testing is as good as its
test case.
number of test cases used to determine errors in the program should be
minimum. There are two fundamental goals of a practical testing activity:-
• maximize the number of errors detected and. minimize the number of test cases.
As these two goals are contradictory so the problem of selecting test cases is a
complex one. While selecting the test cases the primary objective is to ensure that if
there is an error or fault in the program, it is exercised by one of its test cases. An ideal
test case is one which succeeds (meaning that there are no errors, revealed in its
execution) only it there are no errors in the program one possible set of ideal test cases is
one which includes all the possible inputs to the program. This is often called
"exhaustive testing", however it is impractical and infeasible as even a small program
can have an infinite input domain.
Dept.of.CSE,KIT Page 28
EMPLOYEE MANAGEMENT SYSTEM
So to avoid this problem we use "test criteria" in selection of the test cases. There are
two aspects of the test case selection:-
• specifying a criteria for evaluating the test cases
• generating the set of cases that satisfy a given criteria.
The fully automated process of generating test criteria has not been yet found rather
guidelines are only the automated tool available to us previously. The two fundamental
properties for a testing criterion are:-
• Reliability: a criterion is reliable if all the sets that satisfy the criteria detect the same
error. .
• Validity: a criterion is valid if for any error in the program there is some set satisfying
the criteria that will reveal the error.
The fundamental theorem of testing is that if a testing criterion is valid and reliable, if a
set satisfying criteria succeeds then the program contains no errors. Test case 1
Test case 3
Case : Testing of the generated report.
Result : System is not able to generate correct output.
Reason : His occurred because database was not normalized.
Solution : After marketing proper normalized we can able to get correct result.
Test case 4
Dept.of.CSE,KIT Page 29
EMPLOYEE MANAGEMENT SYSTEM
Solution : After giving the proper query, we can able to get correct result.
Test case 5
Dept.of.CSE,KIT Page 30
EMPLOYEE MANAGEMENT SYSTEM
CHAPTER 6
SCREENSHOTS AND OUTPUT
ADMIN LOGIN
Dept.of.CSE,KIT Page 31
EMPLOYEE MANAGEMENT SYSTEM
EMPLOYEE LOGIN PAGE
Dept.of.CSE,KIT Page 32
EMPLOYEE MANAGEMENT SYSTEM
EMPLOYEE DATA VEIW
Dept.of.CSE,KIT Page 33
EMPLOYEE MANAGEMENT SYSTEM
LEAVE FORM
SALARAY VIEW
CHAPTER 7
CONCLUSION AND FUTURE ENHANCEMENT
Dept.of.CSE,KIT Page 34
EMPLOYEE MANAGEMENT SYSTEM
CONCLUSION
• The aim of the project is to automate a (your project), which has been
successfully performed.
• The package is very user friendly one, which helps the administrator to manage
the users and also the database itself efficiently with effective use of minimum
number of buttons. The user or administrator is not expected to know completely
about the software.
• This reduces manual and enormous amount of paperwork involved.
FUTURE ENHANCEMENT.
Currently the system supports in desktop pc and in future we can make mobile browser
compatible site.
BIBLIOGRAPHY
REFERENCES
https://learndigital.withgoogle.com/digitalgarage-au https://www.w3schools.com/
https://www.tutorialspoint.com/index.html
Dept.of.CSE,KIT Page 35