0% found this document useful (0 votes)
16 views21 pages

Database Management System: Mini Project

This document outlines a mini project for a company management system using a database. It includes sections on hardware and software requirements, entity-relationship diagrams, a relational schema, implementation details using Python classes, sample usage including login and retrieving employee data, and future extensions. The project aims to build core features for employee profiles, attendance tracking, leave management and performance evaluation to help reduce costs and improve productivity using an employee management system.

Uploaded by

Madiha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views21 pages

Database Management System: Mini Project

This document outlines a mini project for a company management system using a database. It includes sections on hardware and software requirements, entity-relationship diagrams, a relational schema, implementation details using Python classes, sample usage including login and retrieving employee data, and future extensions. The project aims to build core features for employee profiles, attendance tracking, leave management and performance evaluation to help reduce costs and improve productivity using an employee management system.

Uploaded by

Madiha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Database management

system: mini project


Company management system
Content

1. Introduction
2. Software and Hardware Requirements
3. Entity, Attribute and Relationship
4. ER Diagram
5. Relational Schema
6. Implementation
7. Result of the project
8. Database Normalization
9. Future Scope
10. Conclusion
11. References
Introduction

 Company management is a practice that helps a


manager improve employee productivity and
satisfaction to help an organisation reach its goals.
 Human resources (HR) professionals often use an
employee management system (EMS), including
recruitment, offboarding and performance
management.
 Using a dedicated EMS can help an HR manager
streamline the hiring process and improve workplace
efficiency
Hardware and software requirements

Hardware Requirements:-
1. Laptop/Desktop
2. Minimum 1 GB of RAM
3.Minimum 100 GB HDD

Software Requirements:-
1. Windows Operating System
2. Python 3.7 or its equivalent software
3. MySQL Server 5.1 must be installed on the system.
4. Mysql connector must be installed along with MySQL in the Python Program.
ER Diagram
Schema
Implementation:
Class Employee:

def __init__(self, username, password, name, email, employee_id, department, hire_date, salary):

self.username = username

self.password = password

self.name = name

self.email = email

self.employee_id = employee_id

self.department = department

self.hire_date = hire_date

self.salary = salary

Class EmployeeM anagementSystem:

def __init__(self):

self.employees = []

def add_employee(self, employee):

self.employees.append(employee)

def total_employees(self):

return len(self.employees)

def total_salary(self):
total_salary = sum(employee.salary for employee in self.employees)

return total_salary

def login(self, username, password):

for employee in self.employees:

if employee.username == username and employee.password == password:

return True

return False

def get_department_name(self, department_id):

# Add logic to retrieve department name based on department ID

# For simplicity, returning a hardcoded department name

departments = {

“D001”: “HR”,

“D002”: “Finance”,

# Add more department Ids and names as needed


}

return departments.get(department_id, “Unknown Department”)

# Sample usage:

ems = EmployeeM anagementSystem()

# Adding employees

emp1 = Employee(“user1”, “pass1”, “John Doe”, [email protected], "E001", "D001", "2023-01-01",


50000)

emp2 = Employee("user2", "pass2", "Jane Smith", "[email protected]", "E002", "D002", "2022-12-15",


60000)
ems.add_employee(emp1)

ems.add_employee(emp2)
# Login example

username = input(“Enter username: “)

password = input(“Enter password: “)

if ems.login(username, password):

print(“Login successful!”)

else:

print(“Invalid username or password”)

# Display total employees and total salary

print(“Total employees:”, ems.total_employees())

print(“Total salary:”, ems.total_salary())

# Display department name for an employee

employee_id = input(“Enter employee ID to get department name: “)

department_name = ems.get_department_name(employee.department)

print(“Department name:”, department_name)


Results
Future Scope

 Company management systems will ultimately allow you to better


manage resources.
 One of the main features in employee management system is time
tracking for employees.
 Effective time tracking mechanism saves both time and money for the
organization.
Conclusion

 Focus on building the core features discussed earlier, including employee


profiles, attendance tracking, leave management, and performance
evaluation modules.
 A strong employee management system can help reduce costs, increase
productivity, and improve customer service, among other things.
 With the right employee management system in place, you can enjoy the
benefits of improved employee morale, increased job satisfaction, and better
results for your organization
References

BOOKS
Fundamentals of database systems, Ramez Elmasri and S B Navathe, 7th Edition,
2017, Pearson.
Database management systems, Ramakrishnan, and Gehrke, 3rd Edition, 2014,
McGraw Hill.

LIST OF WEBSITES
https://www.w3schools.com/
https://www.udemy.com/
https://www.youtube.com
THANK YOU
KUBRA FATIMA 3PD21CS030
MADIHA RUHEEN 3PD21CS032
MAHEK SULTANA 3PD21CS033

You might also like