IMAT5103: Salary Management System Database Design & Implementation

Verified

Added on  2023/04/21

|13
|705
|498
Project
AI Summary
This project focuses on the design and implementation of a database for a salary management system. It includes conceptual and logical database designs, covering business rules, entity relationships, and schema definitions. The project involves creating database tables using Oracle DBMS, defining indexes, populating tables with data, and writing SQL queries to retrieve and manipulate the data. The queries demonstrate various SQL functionalities, including selecting data, joining tables, ordering results, and calculating aggregate functions. The database schema includes tables for departments, employees, salaries, and payments, with appropriate primary and foreign key relationships to ensure data integrity and efficient data retrieval. The document is available on Desklib, a platform offering a wealth of study resources for students.
Document Page
Running head: DATABASE
Database
Name of the Student:
Name of the University:
Author Note
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
1
DATABASE SYSTEM AND DESIGN
Stage 1: Scenario and Conceptual Database Design Task
1.1: Selection of the case upon which the database design and implementation is to be
based
The description of the report is based on the development of the database on a salary
management system of an arbitrary company. The system consists of the development of a
system that would be helpful for the organization in maintaining a management system that
would be helpful for them in managing the salaries of the employees of the organization. The
data related to the departments in organization are also to be included in the database of the
system. In addition to this, the data of all the employees are also required to be stored in the
database system for the organization. The salary and the payment for each of the employees
in the organization are to be stored within the database of the organization.
Document Page
2
DATABASE SYSTEM AND DESIGN
Task 1.2: Provide a conceptual database design for your scenario & the list of enterprise
rules being modelled
Business Rules
The business rules for the implementation of the salary management system has been
described below:
The system should be able to store the details of the departments with their unique
DepartmentID.
Document Page
3
DATABASE SYSTEM AND DESIGN
The system should be able to store the details of the Employees are to be stored in the
system with their unique EmployeeID.
The system should be able to store the details of the salaries of each of the employees
of the organization.
The system should be able to store the details of the payment of salaries for the
employees for the organization.
Stage 2: Logical Database Design and Oracle SQL Implementation/querying
Task 2.1: Provide a Logical Database Design for your scenario
Department (DepartmentID (pk), DepartementName)
Employee (EmployeeID (pk), EmployeeName)
Salary (SalaryID (pk), EmployeeID (fk), Amount)
Payment (PaymentID (pk), SalaryID (fk), PMode)
Task 2.2 Create the tables using Oracle DBMS
Database tables
Department
Employee
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
4
DATABASE SYSTEM AND DESIGN
Salary
Payment
Document Page
5
DATABASE SYSTEM AND DESIGN
Task 2.3: Create the four most useful indexes on your tables
Department
Employee
Salary
Payment
Document Page
6
DATABASE SYSTEM AND DESIGN
Task 2.4: Data Population
Department
Employee
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
7
DATABASE SYSTEM AND DESIGN
Salary
Payment
Document Page
8
DATABASE SYSTEM AND DESIGN
Task 2.5: SQL Query writing
Query 1
Select * From P17242239PAYMENT Where PMODE = 'Cash';
Query 2
Select P17242239EMPLOYEES.EMPLOYEENAME
From P17242239EMPLOYEES
Document Page
9
DATABASE SYSTEM AND DESIGN
Inner Join P17242239SALARY On P17242239SALARY.EMPLOYEEID =
P17242239EMPLOYEES.EMPLOYEEID
Inner Join P17242239PAYMENT On P17242239PAYMENT.SALARYID =
P17242239SALARY.SALARYID
Where P17242239PAYMENT.PMODE = 'Online';
Query 3
Select P17242239EMPLOYEES.*, P17242239SALARY.*
From P17242239EMPLOYEES
Inner Join P17242239SALARY On P17242239SALARY.EMPLOYEEID =
P17242239EMPLOYEES.EMPLOYEEID
Order By P17242239SALARY.AMOUNT DESC;
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
10
DATABASE SYSTEM AND DESIGN
Query 4
Select MAX(P17242239SALARY.AMOUNT)
From P17242239SALARY;
Query 5
Select P17242239EMPLOYEES.EMPLOYEENAME, P17242239SALARY.*,
P17242239PAYMENT.*
From P17242239EMPLOYEES
Inner Join P17242239SALARY On P17242239SALARY.EMPLOYEEID =
P17242239EMPLOYEES.EMPLOYEEID
Inner Join P17242239PAYMENT On P17242239PAYMENT.SALARYID =
P17242239SALARY.SALARYID;
Query 6
Select SUM(P17242239SALARY. AMOUNT)
From P17242239SALARY;
Document Page
11
DATABASE SYSTEM AND DESIGN
Document Page
12
DATABASE SYSTEM AND DESIGN
Bibliography
Al-Brashdi, A., Butler, M., Rezazadeh, A. and Snook, C., 2016. Tool support for model-
based database design with Event-B.
Purohit, S.K. and Sharma, A.K., 2015. Database design for data mining driven forecasting
software tool for quality function deployment. International Journal of Information
Engineering and Electronic Business, 7(4), p.39.
Richter, K.S., Mottla, G.L., Kaplan, B., Hayward, B. and Mahony, M.C., 2016. Evaluating
pregnancy and live birth outcomes in a real-world analysis of a US database of 66,051
transfers over 6.5 years. Fertility and Sterility, 106(3), pp.e53-e54.
chevron_up_icon
1 out of 13
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]