You are required to develop a simple database application for a small recruiting firm that wishes to keep track of all the employees at the firm; storing details about their name, phone numbers, hiredate, Gender, Date of Birth, Salary, and Commission. The firm has many departments and there are 5 to 20 employees in each department. The department information includes department name, description and total number of employees in that department. The company also provides vehicles for some of its employees. An employee maybe allocated one car. To ensure timely maintenance of vehicle, the company would like to store the following details of the vehicle: make, model, next_maintenance_date. Each employee has a position (manager, accountant, administrator, clerk, HR employee, etc.). Various allowances are allocated to each position. For example, the managers have fuel allowance, house allowance, social allowance and managers allowance. On the other hand, the administrators have house allowance and social allowance. Clerks and HR employees have social allowance and uniform allowance. The name and description of each allowance needs to be stored. The database keeps track of all Projects in the organization. Each department is assigned to one or more project. Project can be assigned to one or more department (Interdisciplinary projects). The HR Employee has his own credentials to login into the system to manipulate the database. The credentials are stored in a table (Login). You will also need a table to store transactions (Transaction Date/Time, User Name, Position, and Employee Number). The system must store employees' grades. Each employee will have a grade (Example A, B, C). The grade should have a predefined salary range. The system must store information about employee's overtime base on night or day shift, number of working hours, and grade. An employee may or may not work overtime. The calculation of overtime is based on Hourly pay rate per grade * Number of working Hours* Day or Night Shift. The maximum number of hours for overtime is 8 hours. Night time shift pay is twice the Day time shift pay. The hourly pay rate is based on the Grade. Example (Grade A receives $200, Grade B Receives $150 and So on). You need to have the following constraints in your system: Primary and foreign keys. The employee's salary should be between the grade range (Example: Grade A - Salary between 30000- 50000). Employee's phone number, Hiredate, Date of Birth should not be empty. The age should be between 18 and 60. Vehicle next maintenance is within 3 month of current date. Each position should not exceed the predefined allowances. The System will need a constraint for Gender ('M','F'). The Username must be Unique in Table Login. Mandatory fields must not be NULL. I did this, and i need this a. Mapping ERD to Relational Schema. b. Adding Foreign Keys. c. Resolve any M:N relationship between the entities.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
You are required to develop a simple database
application for a small recruiting firm that wishes to
keep track of all the employees at the firm; storing
details about their name, phone numbers, hiredate,
Gender, Date of Birth, Salary, and Commission. The
firm has many departments and there are 5 to 20
employees in each department. The department
information includes department name, description
and total number of employees in that department.
The company also provides vehicles for some of its
employees. An employee maybe allocated one car.
To ensure timely maintenance of vehicle, the
company would like to store the following details of
the vehicle: make, model, next_maintenance_date.
Each employee has a position (manager, accountant,
administrator, clerk, HR employee, etc.). Various
allowances are allocated to each position. For
example, the managers have fuel allowance, house
allowance, social allowance and managers
allowance. On the other hand, the administrators
have house allowance and social allowance. Clerks
and HR employees have social allowance and
uniform allowance. The name and description of
each allowance needs to be stored.
The database keeps track of all Projects in the
organization. Each department is assigned to one or
more project. Project can be assigned to one or
more department (Interdisciplinary projects).
The HR Employee has his own credentials to login
into the system to manipulate the database. The
credentials are stored in a table (Login). You will also
need a table to store transactions (Transaction
Date/Time, User Name, Position, and Employee
Number).
The system must store employees' grades. Each
employee will have a grade (Example A, B, C). The
grade should have a predefined salary range.
The system must store information about employee's
overtime base on night or day shift, number of
working hours, and grade. An employee may or may
not work overtime. The calculation of overtime is
based on Hourly pay rate per grade * Number of
working Hours * Day or Night Shift. The maximum
number of hours for overtime is 8 hours. Night time
shift pay is twice the Day time shift pay. The hourly
pay rate is based on the Grade. Example (Grade A
receives $200, Grade B Receives $150 and So on).
You need to have the following constraints in your
system: Primary and foreign keys.
The employee's salary should be between the grade
range (Example: Grade A - Salary between 30000-
50000). Employee's phone number, Hiredate, Date of
Birth should not be empty. The age should be
between 18 and 60. Vehicle next maintenance is
within 3 month of
current date. Each position should not exceed the
predefined allowances. The System will need a
constraint for Gender ('M','F').
The Username must be Unique in Table Login.
Mandatory fields must not be NULL.
I did this, and i need this
a. Mapping ERD to Relational Schema.
b. Adding Foreign Keys.
c. Resolve any M:N relationship between the entities.
Transcribed Image Text:You are required to develop a simple database application for a small recruiting firm that wishes to keep track of all the employees at the firm; storing details about their name, phone numbers, hiredate, Gender, Date of Birth, Salary, and Commission. The firm has many departments and there are 5 to 20 employees in each department. The department information includes department name, description and total number of employees in that department. The company also provides vehicles for some of its employees. An employee maybe allocated one car. To ensure timely maintenance of vehicle, the company would like to store the following details of the vehicle: make, model, next_maintenance_date. Each employee has a position (manager, accountant, administrator, clerk, HR employee, etc.). Various allowances are allocated to each position. For example, the managers have fuel allowance, house allowance, social allowance and managers allowance. On the other hand, the administrators have house allowance and social allowance. Clerks and HR employees have social allowance and uniform allowance. The name and description of each allowance needs to be stored. The database keeps track of all Projects in the organization. Each department is assigned to one or more project. Project can be assigned to one or more department (Interdisciplinary projects). The HR Employee has his own credentials to login into the system to manipulate the database. The credentials are stored in a table (Login). You will also need a table to store transactions (Transaction Date/Time, User Name, Position, and Employee Number). The system must store employees' grades. Each employee will have a grade (Example A, B, C). The grade should have a predefined salary range. The system must store information about employee's overtime base on night or day shift, number of working hours, and grade. An employee may or may not work overtime. The calculation of overtime is based on Hourly pay rate per grade * Number of working Hours * Day or Night Shift. The maximum number of hours for overtime is 8 hours. Night time shift pay is twice the Day time shift pay. The hourly pay rate is based on the Grade. Example (Grade A receives $200, Grade B Receives $150 and So on). You need to have the following constraints in your system: Primary and foreign keys. The employee's salary should be between the grade range (Example: Grade A - Salary between 30000- 50000). Employee's phone number, Hiredate, Date of Birth should not be empty. The age should be between 18 and 60. Vehicle next maintenance is within 3 month of current date. Each position should not exceed the predefined allowances. The System will need a constraint for Gender ('M','F'). The Username must be Unique in Table Login. Mandatory fields must not be NULL. I did this, and i need this a. Mapping ERD to Relational Schema. b. Adding Foreign Keys. c. Resolve any M:N relationship between the entities.
Entities:
- Employee: ename, hiredate, DOB, PhoneNo, gender, salary, commission
Transaction: transaction Date, empno, username, position
- Login: ID, password
- Grade: salary_range
- Position: pname
Allowance: aname, description
Vehicle: next_maintainance, model, make
- Project: project No, projectName
Department: description, totalEmpNo, deptName
projectNo
PROJECT
VEHICLE
next maintenance)
make
ALLOWANCE
projectName
aname
model
allocated
assigned
description
provided
description
ename
gender
has
totalEmpNo
DEPARTMENT
employs
EMPLOYEE
recieves
deptName
commission
hiredate
DOB
phoneNo
salary
POSITION
gogogo
pname
BONUS
enters
job
has
username
job
bname
empno
TRANSACTION
manipulate
LOGIN
GRADE
date time
password
ID
salary_range
Transcribed Image Text:Entities: - Employee: ename, hiredate, DOB, PhoneNo, gender, salary, commission Transaction: transaction Date, empno, username, position - Login: ID, password - Grade: salary_range - Position: pname Allowance: aname, description Vehicle: next_maintainance, model, make - Project: project No, projectName Department: description, totalEmpNo, deptName projectNo PROJECT VEHICLE next maintenance) make ALLOWANCE projectName aname model allocated assigned description provided description ename gender has totalEmpNo DEPARTMENT employs EMPLOYEE recieves deptName commission hiredate DOB phoneNo salary POSITION gogogo pname BONUS enters job has username job bname empno TRANSACTION manipulate LOGIN GRADE date time password ID salary_range
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Dataset
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning