0% found this document useful (0 votes)
19 views3 pages

Dbms Unit 2 Project.

The project report outlines the design and implementation of an employee database schema for a large organization, focusing on storing personal details, job information, salary details, and benefits. It utilizes concepts such as Entity-Relationship Modeling, Relational Database Management System, normalization, and SQL to ensure data integrity and reduce redundancy. The schema includes tables for Employee, Job, Salary, and Benefits, with appropriate primary and foreign keys defined.

Uploaded by

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

Dbms Unit 2 Project.

The project report outlines the design and implementation of an employee database schema for a large organization, focusing on storing personal details, job information, salary details, and benefits. It utilizes concepts such as Entity-Relationship Modeling, Relational Database Management System, normalization, and SQL to ensure data integrity and reduce redundancy. The schema includes tables for Employee, Job, Salary, and Benefits, with appropriate primary and foreign keys defined.

Uploaded by

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

VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE

(AN AUTONOMOUS INSTITUTION)


Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284

PROJECT REPORT
Roll No.: 23891A67I1 Name :Surkanti Vani Branch: Data Science

Year &Sec: II – 2&C Course Name: DBMS Unit No.: 2

Project Title: Implement an employee database schema

Problem Statement:

 Design and implement a database schema to store employee information for a large organization.
 The schema should be able to store employee personal details, job information, salary details, and
benefits.

Introduction:

 An employee database is a critical component of any HR management system. It stores vital


information about employees, making it easier to manage payroll, benefits, and performance
evaluations.
 A well-designed database schema ensures data consistency, reduces data redundancy, and
improves data integrity.

Concepts used :
1. Entity-Relationship Modeling (ERM): Used to identify entities, attributes, and relationships between
them.
2. Relational Database Management System (RDBMS): Implemented using MySQL.
3. Normalization: Applied to minimize data redundancy and improve data integrity.
4. SQL: Used to create and manipulate the database schema.
Database Schema Design
The following entities are identified:
Employee
 Employee_ID (Primary Key): Unique identifier for each employee.
 Name: Employee name.
 Date_of_Birth: Employee date of birth.
 Email: Employee email address.
 Phone: Employee phone number.
ob
 Job_ID (Primary Key): Unique identifier for each job.
 Job_Title: Job title.
 Job_Description: Job description.
 Department: Department name.
Salary
 Salary_ID (Primary Key): Unique identifier for each salary record.
 Employee_ID (Foreign Key): References the Employee table.
Page 1 of 3
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
(AN AUTONOMOUS INSTITUTION)
Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284

 Job_ID (Foreign Key): References the Job table.


 Basic_Salary: Basic salary amount.
 Allowances: Allowances amount.
Benefits
 Benefit_ID (Primary Key): Unique identifier for each benefit record.
 Employee_ID (Foreign Key): References the Employee table.
 Benefit_Type: Benefit type (e.g., health insurance, retirement plan).
 Benefit_Details: Benefit details.

Implementing code:
CREATE TABLE Employee (
Employee_ID INT PRIMARY KEY,
Name VARCHAR(255) NOT NULL,
Date_of_Birth DATE NOT NULL,
Email VARCHAR(255) UNIQUE NOT NULL,
Phone VARCHAR(20) NOT NULL
);

CREATE TABLE Job (


Job_ID INT PRIMARY KEY,
Job_Title VARCHAR(255) NOT NULL,
Job_Description TEXT NOT NULL,
Department VARCHAR(255) NOT NULL
);

CREATE TABLE Salary (


Salary_ID INT PRIMARY KEY,
Employee_ID INT NOT NULL,
Job_ID INT NOT NULL,
Basic_Salary DECIMAL(10, 2) NOT NULL,
Allowances DECIMAL(10, 2) NOT NULL,
FOREIGN KEY (Employee_ID) REFERENCES Employee(Employee_ID),
FOREIGN KEY (Job_ID) REFERENCES Job(Job_ID)
);

CREATE TABLE Benefits (


Benefit_ID INT PRIMARY KEY,
Employee_ID INT NOT NULL,
Page 2 of 3
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
(AN AUTONOMOUS INSTITUTION)
Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284

Benefit_Type VARCHAR(255) NOT NULL,


Benefit_Details TEXT NOT NULL,
FOREIGN KEY (Employee_ID) REFERENCES Employee(Employee_ID)
);
Output:

Conclusion:

 The employee database schema designed above captures essential employee information, including
personal details, job information, salary details, and benefits.
 The use of entity-relationship modeling, normalization, and SQL ensures a robust and scalable database
design.
 This schema can be extended or modified as needed to accommodate additional requirements or
changes in the organization's policies.

Marks Awarded: Faculty Signature with Date:

Page 3 of 3

You might also like