Question

you are required to develop a simple HR application for a small accounting firm that wishes...

you are required to develop a simple HR application for a small accounting firm that wishes
to keep track of all the employees at the firm; storing details about their salary, phone numbers
and Date of Birth. 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, 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 have social allowance and
uniform allowance. The name and description of each allowance needs to be stored.
The HR system 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).
Each HR Employee has his own credentials to login into the system to manipulate the database.
The HR credentials are stored in a table (Login). You will also need a table to store transactions
(Transaction Date/Time and User Name).
The system must store employees’ grades. Each employee will have a grade (Example A, B,
C). The grade should have a predefined salary range.
You need to have the following constraints in your system: The employee’s salary should be
between the grade range (Example: Grade A - Salary between 30000-50000). Employee’s
phone number and Date of Birth should not be empty. Vehicle next maintenance is within 6
month of current date. Each position should not exceed the predefined allowances.

Part A:
Include the following before drawing the ERD:
a. Write the business rules.
b. Identify all Entities and attributes
c. Identify Primary key and Foreign Key in each table/Entity
d. Identify the Relationships between Entities.
e. Resolve any M:N relationship between the entities.
Part B:
Draw the ERD using any Data Modelling Software

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Part A:

  1. Business Rules: The given system will have below rules:

Rule #1: Department will have minimum 5 to maximum 20 employees

Rule #2: Employees will have unique Emp_ID

Rule #3: Some employees of HR_Employee type will have username and password.

Rule #4: Car can be assigned to one or none employee.

Rule #5: Employee can have 0 or one car.

Rule #6: Multiple allowances will be given to multiple employees

Rule #7: Multiple departments will handle multiple projects.

Rule #8: A project can be assigned to multiple departments.

Rule #9: An employee will has assigned Grade.

Rule #10: Transactions will be stored for HR_Employees

  1. Entities and attributes:
  • Department(Department_Name, Description , Total_Employees)
  • Employees(Emp_ID, salary, Phone_numbers, DateofBirth, Position, Department_Name)
  • HR_Employee(username, password); it is a sub-entity of the entity Employee
  • Car(Car_ID, Make, Model,Next_maintenance_date, Emp_ID)
  • Allowance(Name, Description, Amount )
  • Project(Project_ID, Name)
  • Transaction(Transaction_ID, DateTime, Username)
  • Grade(Grade_Name, Min_Salary, Max_Salary)
  1. Primary key and Foreign keys of tables/entities:
  • Department:
    • Primary key: Department_Name
  • Employees:
    • Primary key: Emp_ID
    • Foreign key: Department_Name
  • Car:
    • Primary key: Car_ID
    • Foreign key: Emp_ID
  • Allowance:
    • Primary key: Name
  • Project:
    • Primary key: Project_ID
  • Transaction:
    • Transaction_ID
    • Foreign key: Username
  • Grade:
    • Primary key: Grade_Name

  1. Relationship between entities:
  • Department to Employee: A department can have minimum 5 to maximum 20 employees. It is a 1:M relationship.
  • Employee to Car: A Car is assigned to 1 employee whereas an employee can have 0 or 1 car. It is a 1:1 relationship.
  • Employee to Allowance: An employee can have one or more allowance whereas an allowance can be allocated to one or more employees. It is a M:N relationship.
  • HR_Employee to Transation: An HR employee can have one or many transactions whereas a transaction deals with one employee record. It is a 1:M relationship.
  • Project to Department: A department can have many projects similarly a project can be assigned to many departments. It is a M:N relationship.
  • Employee to Grade: Each employee will have one Grade whereas many employees can have same grade. It is a M:1 relationship.
  1. Resolving M:N relationship:

The listed relationships under d) has below relationships of M:N cardinalities:

  • Employee to Allowance: The same needs to be stored in separate entity to resolve the M:N relationship. Please find below entity/table to store the allowances for employees:

Emp_Allowance(Emp_ID, Allowance_Name)

Primary key: (Emp_ID, Allowance_Name)

Foreign key: Emp_ID from Employee

Allowance_Name from Allowance

  • Project to Department: The same needs to be stored in separate entity to resolve the M:N relationship. Please find below entity/table to store the departments and corresponding projects:

Department_Projects(Department_name, Project_ID, start_date, end_date)

Primary key(Department_name , Project_ID)

Department_name foreign key from Department

project_ID foreign key from Project

Part B: Drawing ERD

Below are the final Entities obtained in Part A:

**Primary keys are underlined and bold. Foreign key has (fk) next to column name.

  1. Department(Department_Name, Description , Total_Employees)
  2. Employees(Emp_ID, Salary, Phone_number, DateofBirth, Position, Department_Name(fk), Grade(fk))
  3. HR_Employee(Emp_ID(fk), username, password)
  4. Car(Car_ID, Make, Model,Next_maintenance_date, Emp_ID(fk))
  5. Allowance(Name, Description, Amount )
  6. Project(Project_ID, Name)
  7. Transaction(Transaction_ID, DateTime, Username)
  8. Grade(Grade_Name, Min_Salary, Max_Salary)
  9. Department_Projects(Department_name(fk), Project_ID(fk), start_date, end_date)
  10. Emp_Allowance(Emp_ID(fk), Allowance_Name(fk))

ERD for the above entities is given as below:

Add a comment
Know the answer?
Add Answer to:
you are required to develop a simple HR application for a small accounting firm that wishes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • . Create the ERD in your drawing tool for microsoft visio for the following problem; Construct...

    . Create the ERD in your drawing tool for microsoft visio for the following problem; Construct an ERD to represent employees and positions. For employees, the ERD should record the unique employee number, first name, last name, department name, office number, hire date, and date of birth. For position, the ERD should record the unique position number, position name, and step number. Positions can be classified as management, associate, or other. Management positions have a salary range (minimum and maximum)...

  • Projects inc. is an engineering firm with approximately 50 employees A database is required to keep...

    Projects inc. is an engineering firm with approximately 50 employees A database is required to keep track of all employees, their skills, projects assigned and departments worked in. Every employee has a unique number assigned by the firm, required to store her or his name and data of birth. If an employee is currentty married to another employee of Projects tnc. the data of the marriage and who the employee is married to must be stored. Howeer no record of...

  • JAVA ONLY. For this assignment you will create an employee application, containing contact information, salary, and...

    JAVA ONLY. For this assignment you will create an employee application, containing contact information, salary, and position. You will also define the type of company. Is it an engineering firm, a supermarket, or a call center? Once the application has been completed, I should be able to perform a query for any piece of information associated with each employee.   For instance, if I search for employees who make over $50,000, all of the employees whose salaries are greater than $50,000 should...

  • create a Crows Foot ERD using specilization ERD

    Problem 3. Given the following business scenario, create a Crow’s Foot ERD using a specialization hierarchy if appropriate. Granite Sales Company keeps information on employees and the departments that they work in.  For each department, the department name, internal mail box number, and office phone extension are kept.  A department can have many assigned employees, and each employee is assigned to only one department.  Employees can be salaried employees, hourly employees, or contract employees.  All employees are assigned an employee number.  This...

  • TM-315 DATABASE SYSTEMS Please help me to draw an ERD and the Relational Schema and please...

    TM-315 DATABASE SYSTEMS Please help me to draw an ERD and the Relational Schema and please mark the Primary and Foreign Key ..... Deliverable: Word document with grade sheet followed by Part 1 ERD and the Part 2 relational schema. Part 1: Draw the ERD for the following situation. 8 pts Be sure to: Convert all many-to-many relationships to associative entities. Make sure each regular entity has an appropriate identifier. Make sure attribute names are unique within the ERD Wally...

  • Financial Accounting AC1130 Question #1 Complete the Payroll Register using the following information: Required: You are...

    Financial Accounting AC1130 Question #1 Complete the Payroll Register using the following information: Required: You are the Payroll Manager for Potter Corp. Complete the payroll register for the month ending January 31, 2020. Note: • Hours in excess of 160 in any given month are paid at time and a half to all employees, including salaried employees • The Qatari employees receive QR 700 Social Allowance per month • All Canadian employees contribute QR 60 towards social club fees. Ron...

  • 13.7 please 13.7 Table 13.3 (page 602) identifies three risks typically encountered when updating the general ledger Required (a) Analyse the degree of exposure to each of these risks for...

    13.7 please 13.7 Table 13.3 (page 602) identifies three risks typically encountered when updating the general ledger Required (a) Analyse the degree of exposure to each of these risks for the update the general ledger process at AB Hi-Fi. update general ledger process at AB Hi-Fi. the update the general ledger process is, and how comprehensive the current internal (b) Determine how many of the common controls described in table 13.3 are present in the (c) Prepare a short report...

  • The owner of a small chain of appliance stores wants to build a database to help...

    The owner of a small chain of appliance stores wants to build a database to help track data about its regions, stores, employees and jobs.  The chain has divided the map of where its stores exists into various regions. Each region has a description (of boundaries).  Each store is named, has an average market size (expressed in dollars) and belongs to s specific region. Each store also has an address, city, state, and zip.  The database should...

  • New to DB's Please help! You are designing and creating a database named COMPANY for an HR (Human Resource) Dept of...

    New to DB's Please help! You are designing and creating a database named COMPANY for an HR (Human Resource) Dept of a Software Consulting Company to manage their employees and their assigned work (projects) in the company First Step to Design and Create a Database is Creating an E-R Diagram by Identifying Entities, Attributes and Relationships between any two Entities to Create a Company Database Scheme. 1. Create an E-R Diagram for the Company database from the raw data files...

  • Case Study C & S Department Store is the second largest clothing and retail store chain...

    Case Study C & S Department Store is the second largest clothing and retail store chain in Jamaica. At present, they have 5 clothing and retail stores in all 14 parishes and are planning to expand to 7 stores per parish in the next 3 years. C & S Department Store has a centralized Human Resource Department located at its main office in Kingston. Unfortunately, although the HR processes are managed centrally, there are many HR tasks, policies and procedures...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT