DBMS Content Pages
DBMS Content Pages
Chapter 1
INTRODUCTION
1.1 Introduction to DBMS
A database management system (DBMS) is system software for creating and
managing databases. The DBMS provides users and programmers with a systematic way to
create, retrieve, update and manage data. A DBMS makes it possible for end users to create,
read, update and delete data in a database. The DBMS essentially serves as an interface
between the database and end users or application programs, ensuring that data is
consistently organized and remains easily accessible. The DBMS manages three important
things: the data, the database engine that allows data to be accessed, locked and modified --
and the database schema, which defines the database’s logical structure.
The DBMS is perhaps most useful for providing a centralized view of data that can be
accessed by multiple users, from multiple locations, in a controlled manner. A DBMS can
limit what data the end user sees, as well as how that end user can view the data, providing
many views of a single database schema. End users and software programs are free from
having to understand where the data is physically located or on what type of storage media it
resides because the DBMS handles all requests.
The DBMS can offer both logical and physical data independence. That means it can
protect users and applications from needing to know where data is stored or having to be
concerned about changes to the physical structure of data (storage and hardware). As long as
programs use the application programming interface (API) for the database that is provided
by the DBMS, developers won't have to modify programs just because changes have been
made to the database. One of the biggest advantage of using a DBMS is that it lets end users
and application programmers access and use the same data while managing data integrity.
Data is better protected and maintained when it can be shared using a DBMS instead of
creating new iterations of the same data stored in new files for every new application. The
DBMS provides a central store of data that can be accessed by multiple users in a controlled
manner.
1. Employee detail.
2. Details of salary for each grade employee.
3. Detail of salary taken by employee.
4. Fund type that organization provide.
5. Salary detail.
1. Employee Enquiry.
2. Details of employee taken salary for a given month.
3. Detail of salary of employee.
4. Details of employee not taken salary in a month.
5. Reports from various modules.
6. Reports of fund given to a particular employee
Chapter 2
REQUIREMENT SPECIFICATION
In this chapter we are going to discuss about hardware and software requirements which
are required in developing the project and also we give the brief introduction to the software
environment used for developing the project.
Product description:
Salary payment management system is a computerized system which helps user and the
admin to manage the salary payment in electronic format. It reduces the paper work such as file
lost, file damaged and time consuming. It can help the user to manage the transaction or record
more effectively and time saving.
Problem statement:
The problem occurred before having computerized system includes:
File lost when computerized system is not implemented file is always lost
because of human environment. Sometimes due to human error there may
be loss of records.
File damaged when computerized system is not there file is always lost
due to some accident like spilling water by member on file accidently.
Besides some natural disaster like floods or fires may also damage the
files.
Difficult to search records when there is no computerized system there is
always a difficulty in searching of records if the records are large in
number.
Space consuming after number of records become large the space for
physical storage of file and records also increases if no computerized
system is implemented.
Cost consuming as there is no computerized system to add each record
paper will be needed which will increase the cost for the management of
library.
When a salary payment management system will be implemented admin and the
user will easily access payment criteria.
Reliability requirement
The system should accurately perform adding new employee information,
employee validation, payment transaction and search.
Usability requirement
In implementing the whole system it uses visual studio in front end with SQL as
the server side scripting language which will be used for database connectivity and
the backend i.e the database part is developed using MySQL.
Chapter 3
SYSTEM DESIGN
It is a process through which requirements are translated into a representation of the
software. Initially the representation depicts a holistic view of the software. Subsequent
refinement leads to a design representation that is very close to the source code.
The importance of the system design can be stated with a single word- quality. Designing is a
place where the quality fostered in software development. Design provides us representation of
the software that can be accessed for quality. It is the only phase where user requirement
accurately translated into finished software.
This is an administrative module, which feeds the details of salary paid to each
grade employee with all type of allowance that organization provides. The module can also
manipulate these details. The enquiry about salary for each grade types can also be done by using
this module. The modification and deletion operations can also be done from this module.
The module is used to query the employee database in various ways, such as
query on employee id, name, designation, and gender. The module accepts the search criteria and
according to given criteria the module searches the detail and display.
LEAVE MODULE
This is the main module of the software. The module is used to process the leave
request of employee and assign the leave to the employee. The module keeps track of employee
on the leave. The module accept the leave request and if it is a valid request then assign the leave
to the employee and have the leave detail s along with employee information for further
manipulation.
This module is used to calculate and pay salary of employee for each month.
Before calculating the salary the module checks for leave of employee of that month and then
separates the leave with pay and without pay. Then calculate the salary and update the database
of the salary. The module can also be used to pay fund to the employee. And make enquiry of
fund, salary and paid, unpaid employee for a given month.
3.2 ER-diagram
Fund_name
E_id
F_amount
ES Date
Desig TAK
E_id E_id Slip no
bs
n
E_name GETS
EMPLOYEE 1 n PAY SLIP
da
E_phone
ta
n nC ded
AN
E_gend TA hra
KE
E_sal HAS
m
1 LEAVE
From_date
total
INSURANCE
E_id D i
E_id To_date
amount D i
Ins_no D i Reason
D i Ins_name
D i
Employee details
Empid e_f_name e_l_name e_dob e_add e_gender e_phone e_desgn e_dept e_salary e_doj e_ac_no e_type
Fund
Insurance
Leave
Empid dept. name month from_d to_d reason days totals lastleave
Pay slip
month Slip Empid grade Basic ta da hra commission deduction net Working leave
no pay salary days
PERSONAL INFO
SALARY PAID
INSURANCE PAID
FUND PAID
USER
EMPLOYEE DETAILS
SALARY PAY
INSURANCE
LEAVE APPLICATION
ADMIN
FUND
START
USER LOGIN
ADMIN
CHECK INSURANCE
RECEIVED CHECKING THE
PAYMENT OF
WORKING DAYS
FUND/INSURANCE
CHECK FUND
RECEIVED CREATE PAYSLIP
LOGOUT
STOP
Chapter 4
Chapter 5
SYSTEM IMPLEMENTATION
5.1 SQL Commands
SQL commands are instructions, coded into SQL statements, which are used to communicate
with the database to perform specific tasks, work, functions and queries with data.
SQL commands can be used not only for searching the database but also to perform various other
functions like, for example, you can create tables, add data to tables, or modify data, drop the
table, set permissions for users.
SYNTAX:
The CREATE TABLE Statement is used to create tables to store data. Integrity Constraints like
primary key, unique key, foreign key can be defined for the columns while creating the table.
The integrity constraints can be defined at column level or table level.
SYNTAX:
While inserting a row, if you are adding value for all the columns of the table you need not
specify the column(s) name in the sql query. But you need to make sure the order of the values is
in the same order as the columns in the table.
SYNTAX:
In the Update statement, WHERE clause identifies the rows that get affected.
SYNTAX:
The WHERE clause in the sql delete command is optional and it identifies the rows in the
column that gets deleted. If you do not include the WHERE clause all the rows in the table is
deleted.
SYNTAX:
The sql ALTER TABLE command is used to modify the definition (structure) of a table by
modifying the definition of its columns. The ALTER command is used to perform add, drop,
modify table columns and also helps us to add and drop constraints.
SYNTAX:
The sql DROP command is used to remove an object from the database. If you drop a table, all
the rows in the table is deleted and the table structure is removed from the database. When a
table is dropped all the references to the table will not be valid.
SYNTAX:
A SELECT statement retrieves zero or more rows from one or more database tables or database
views. In most applications SELECT is the most commonly used data query language (DQL)
command.
Chapter 6
PROCESS LOGIC
1. Start.
2. Get employee details.
3. Connect to database.
4. Validate information.
5. Insert detail into table.
6. Close connection.
7. Stop.
EMPLOYEE ENQUIRY
1. Start.
2. Get employee id.
3. Connect to database.
4. Search records of employee for given id.
5. IF (record found) then
{
Display details
}
Else
{
Write “not found”
}
6. Close connection.
7. Stop.
SALARY PAYMENT
1. Start.
2. Get employee id.
3. Connect to database
4. Find salary information of given employee id.
5. Find the leave taken by given employee id.
6. If (without pay leave found) then
{
Calculation amount to be deducted into ded
}
Else
{
ded =0
}
1. Start.
2. Get employee id, date.
3. Connect to database.
4. Search records of salary paid to employee for given id and date.
5. If (record found) then
{
Display ”salary paid”
Else
{
Write “not paid”
}
6. Close connection
7. Stop
Chapter 8
CONCLUSION
The admin of the organization can easily control the payment criteria through this system
and can efficiently maintain the records of employee information working in the organization. It
has a user friendly-interface and also it automatically calculates salary to be paid to the employee
considering the leaves applied. The “Salary payment management system” not only improves the
efficiency but will also reduce human stress.
BIBLIOGRAPHY
REFERRED BOOKS:
Database systems Models, Languages, Design and Application Programming,
Ramez Elmasri and Shamkant B. Navathe, 7th Edition, Pearson.
John Sharp, Microsoft Visual C# Step by Step, 8th Edition, PHI Learning Pvt. Ltd. 2016
REFERRED WEBSITES:
www.google.com
www.scribd.com
www.stackoverflow.com
www.w3schools.com