You are on page 1of 14

EMPLOYEE

MANAGEMENT

SYSTEM

1.
Index
Topics Page No.
Hardware & Software 5
specification
Objective 6
Creation of Records 7
Insertion Of Records 8
Connectivity Program 9
Insertion Of new record 10-11
Updation Of record 12-13
Deletion of record 14-15
Conclusion 16
Bibliography 17
Thank You 18
HARDWARE AND
SOFTWARE
SPECIFICATIONS

1. Windows 10
Processor: Intel(R) Core(TM)i3-
7130U
CPU @2.70GHz 2.71GHz
RAM:8.00GB
System Type: 64-bit Operating
System,
x64-based processor
2. Python 3.7
3. MySQL
4. MS-Word
5. Deskjet printer

S.
OBJECTIVE

The objective of Employee Management System is


efficient management of data about employee name,
in,
age, salary, date of joining, department working
location and designation. The need for employee

management system arises as it reduces paperwork,


attendance
help employee develop skills, track time and
and ensure better employee manager relationship.

Efficient database management helps in accurate and

essential data which can be shared. The problemns

solved in the based real life and help in


project are on

the quick update and view of data. All the works are

GUI- supported, making it less cumbersome and

comparatively error-free.

5.
CREATION OF RECORDS
I. Create a table in MYSQL with the ficlds mentioned.

Jnput&Output

ysqb use 1project;


patabase changed
nysql> Create table Enployee
(rp iD char(20) UNTQUE,
EnpINane varchar(30) NOT NULL,
Departpent varchar(30),
Enplsal INTEGER
Hire Date DATE);
Query OK, 0 roWs affected (1.92 sec)
ysql> Describe Enployee;
Field Type Noll Key Default |Extral
Enp 1D | char(20) YES UNI ULL
Enp /Name varchar(30) NO NULL
Departnent varchar(30) YES NULL
Explsal int YES NULL
HireDate date YES NULL

rows in set (0.11 sec)


ysgb

7.
2. Show at least S records through MYSQL.

mysq INSERT into Bployee


MALUES('MA', Rekha", 'ales',10000,"2014-06-09'),
(228', karan','HR,25000,"2016-0-10'),
2021-02-19"),
(223C Neha', Finance,350000,"2018-08-11'),
(240, 'kirti','sales,250000,
>(2E, akash', "Production',100000,2021-05-06');
Query Ck, 5 rous affected0 (0.14 sec) 0
Records: 5 Duplicates: harnings:
ysq SELECT FRON Eploye
| Bpln| Bplkame| Departent | Brplsal | tireDate
221A Rekha | Sales 100000| 2014-06-09
HR 250000 2016-04-10
228 Karan 35S0000| 2021-02-19 |
223C Neha Finance
sales 250000| 2018-08-11
| 2240 kirti
22SE Aakash | Production | 100000| 2021-05-06 |
ros in set (0.00 sec)

ysql

8.
CONNECTIVITY PROGRAM
3. Write a connectivity program to display
the record.

Python 385 Shell


File Edit Shel Debug Optiors Window Help
bit (Intel)] win32
Pychon 3.8.5 (tags/v3.3.5:580fbb0, Jul 20 2020, 15:43:03) (MSC v.1926 32
on

information.
Type "help", "copyright", "credits" or "license()" for more
> #Connectivity Program

mport nysql.connector as c
db=c.connect (host='localhost',user='root',passwa='nda2021tabase="'ipproject')
>nc=db.cursor ()
mc.execute( "select from Employee')
> for i in mc:
print (i)

(221A', 'Rekha', 'Sales', 100000, datetime.date (204, 6, 9))


(222B, 'Karan', "HR", 250000, datetine.date (2016, 4, 10))
(223C, 'Neha', 'Finance', 350000, datetime.date(2021, 2, 19))
(224D, 'Kirti', 'Sales', 250000, datetime.date(2018, , 11))
('225E, 'Aakash', 'Production', 100000, datetine.date(2021, 5, 6))

9
INSERTION OF NEW
RECORD
4. Insert records
through python program.
Input&0utput
try 1.pyCAsers/Dell/Desktop/try1py(3.85)
FileEdit Format Run Options Window Help
import mysql.connector
con=mysql.connector.connect (host="localhost ",
password="nda2021",
user="root",
database="ipproject")
Cur=con.cursor ()
n=inpus("enter Empl ID:")
c(input ("enter EmplName: "))
r=(input ( "enter Department: ") )
aint (input ("enter EmplSal: "))
ag=input ("enter Hire_Date: ")
query"insert into employee values (' {}','0''O" ,'O)')". format (n, c, r,a,ag)
cur.execute (query)
con.commit ()
print ("rows inserted successfully")

Python 3.8.5Shel
File Edit Shell Debug Options Window Help
20 2020, 15:43:08) [MSC v. 1926 32 bit (Intel) ]
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul
"credits" o r "license () for more information.
"

Type "help", "copyright",


==*
== RESTART: C:/Users/Dell/Desktop/tryl.py

enter EmplID:227F
enter Emp1Name Ritu
enter Department : Sales
enter EmplSal:500000

enter Hire_Date : 2019-02-11


rows inserted successfully

>>>

10.
OUTPUT IN MYSQL

ysqlb select* fron enployee


| Emplsal | Hirepate
Enp11D | EnpINane| Department
Rekha |sales 100000 2014-06-09
221A 250000 2016-04-10
228 Karan HR 350000 2021-02-19
223C Neha Finance 250000 2018-08-11
224D Kirti Sales
225E Aakash Production 10000 2021-05-06
Sam HR 400000 2016-10-10
226F SOOO00 2019-02-11
227F Ritu | Sales

rous in set (0.00 sec)

PYSql

11
OUTPUT IN MYSQL
ysql> select * from employee;

--t----.
EmplID| Emp IName | Department| Enplsal | HireDate
221A Rekha Sales 99999| 2014-06-09
222B Karan HR 249999 2016-04-10
223C | Neha Finance 349999 2021-02-19
224D Kirti Sales 249999 2018-08-111
22SE Aakash Production 99999 2021-05-06
226F Sam HR 399999| 2016-10-10
227F Ritu Sales 499999| 2019-02-11

rows in set (0.01 sec)


ysql

13.
DELETION OF NEW RECORD
6. Delete a record and display atter updation through python.

orcpy-C/Users/ Del/AppDatalocalPrograms/Pyhon/Pythoni3832/propy 385)


File Edit Format Run Options Window Help
mys..connector
ydb-mysql.connector.connect (host="localhost",
password="nda2021",
user="root"
database="Ipproject")

cur-yab.cursor{)
SDELETE irom employee KHERE EmpISal=3904
Cur.execute (s)
yab.commi t()

14.
OUTPUT IN MYSQL

ysql> Select * from employee;

--
Emp1D EmpIName| Department I Emplsal | Hire Date
| 221A Rekha Sales 99998 2014-06-09
222B Karan HR 249998 1 2016-04-10
223C Neha Finance 349998| 2021-02-19
| 224D Kirti Sales 249998 2018-08-11 |
225E Aakash Production 99998 2021-05-06
227F Ritu Sales 499998| 2019-02-11

6 rows in set (0.00 sec)

ysql>

mvsol -1-

15.
Conclusion
This project is built
keeping
in mind that it is to be
used by only one user that is the admin. It is built for
use in small scale
organization where the number of
employees is limited. According to the requested
requirement the admin can add, manipulate, update
and delete all employee data in his organization. The
admin can add new departments and delete them.
The admin can also add predefined pay grades for
the employees. The required records can be be
easilyviewed by the admin anytime time he wants in
an instant. The payment of the employee is based
onmonthly basis.
Numerous validations implemented would enable the
admin to enter accurate data. The main objective of this
framework is to save time, make the system cost
effective and management records efficiently.

16
Bibliography
1.dev.mysql.com
2.Information practices -

SumitaArora

3.WwW.python.org
4.Slideshare. net

17.

You might also like