Lovely Professional University
Lovely Professional University
PROJECT ON:
“Employee Management System”
Done by
Name of Student:Ramineni.Gopichand
Registration Number : 12101028
Roll Number :RK21ANB51
2. Entities
1.EMPLOYEE DETAILS:
(e_id,e_name,e_city,e_email,e_gender,e_experience)
E_id=employee’s id
E_name=employee’s name
E_city=employee’s city
E_emil=employee’s e-mail
E_gender=employee ‘s gender
E_experience=employee’s experience
2. DEPARTMENT DETAILS:
(d_id,d_name,d_location)
A department is in which the a particular employee works
Under the department. Every employee has a
department
D_id=department id
D_name=department name
D_location=department location
3. PROJECTS DETAILS:
(p_id,p_name,p_location)
5. salary details:
S_anual=anual salary
S_bonus=bonus salary
2.1.3 RELATIONSHIP
1. Functional Dependency
1. employee table
• {e_id}=e_email(functional dependency exits
because two different e_email do not correspond
to same e_id)
• {e_id}=e_city
• {e_id}=e_name(functional dependency exits)
• {e_id}=e_experience(functional dependency
exits)
2. Department details :
• {d_id}=d_name(functional dependency exits)
4.leave details :
• {l_id}=l_date(functional dependency exits)
CHAPTER-3
PL/SQL
3.1 SQL Table
Creation
The Implementation of SQL
server is given below :-
CREATE
TABLE
employee (
e_id int PRIMARY KEY,
e_name varchar(255),
e_city varchar(255),
Email varchar(255),
varchar(255),
e_experience number(5)
);
NULL,
PRIMARY KEY (s_id),
#diplay the employee who has work experience more than 3 and lives in pune
select e_name from employee where e_experience>3 and e_city='pune';
insert into dept2 values (1,'HR department','hyderabad'); insert
into dept2 values (2,'marketing department','Bangalore');
insert into dept2 values (3,'finance department','pune'); insert
into dept2 values (4,'sales department','mumbai'); insert into
dept2 values (5,'HR department','chennai'); insert into dept2
values (6,'HR department','Bangalore'); insert into dept2 values
(7,'sales department','hyderabad'); insert into dept2 values
(8,'finance department','pune'); insert into dept2 values (9,'HR
department','hyderabad'); select * from dept2
select d_name, count(*) from department group by d_name;
declare total
number(2):=0;
begin
select count(*) into total from
employee;
dbms_output.put_line(total);
end;
declare total
number(2):=0;
begin
select count(*) into total from
employee
where e_city='hyderabad' and e_experience>3;
dbms_output.put_line(total); end;
declare total
number(2):=0;
close curs_emp;
dbms_output.put_line(ee_id ||
ee_city); end;
declare
ee_id employee.e_id%type; ee_city
employee.e_city%type; ee_experience
employee.e_experience%type; cursor cust_e
is
select e_id,e_city,e_experience from employee;
begin open cust_e; loop
fetch cust_e into ee_id,ee_city,ee_experience; exit
when cust_e%notfound;
dbms_output.put_line('the employee id is '||ee_id|| ' works in' ||
ee_city|| 'and experience is'|| ee_experience); end loop; close
cust_e; end;
CONCLUSION
Software for employee management systems helps
your organization improve workforce productivity and
boost overall well-being by tracking and monitoring the
daily working activities of every employee. DeskTrack
is the best employee productivity monitoring software
for workforce management. It keeps track of every
activity done by an employee during his working hours.
As a result, if you are searching for the best employee
productivity monitoring software then DeskTrack has
some impressive features that can be the best fit for
your organization.