logo

Database System Modelling for Granite Sales Company

Overview of business case: 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 is kept along with the employee’s name and address. For hourly employees, hourly wage and target weekly work hours are stored (e.g. the company may target 40 hours/week for some, 32 hours/week for others, and 20 hours/week for others). Some salaried employees are salespeople that can earn a commission in addition to their base salary. For all salaried employees, the yearly salary amount is recorded in the system. For salespeople, their commission percentage on sales and commission percentage on profit are stored in the system. For example, John is a salesperson with a base salary of $50,000 per year plus 2-percent commission on the sales price for all sales he makes plus another 5 percent of

8 Pages1098 Words157 Views
   

Added on  2023-05-27

About This Document

This article discusses the database system modelling for Granite Sales Company. It covers the business rules, tables involved, and the entity relationship diagrams and SQL queries used to model the system.

Database System Modelling for Granite Sales Company

Overview of business case: 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 is kept along with the employee’s name and address. For hourly employees, hourly wage and target weekly work hours are stored (e.g. the company may target 40 hours/week for some, 32 hours/week for others, and 20 hours/week for others). Some salaried employees are salespeople that can earn a commission in addition to their base salary. For all salaried employees, the yearly salary amount is recorded in the system. For salespeople, their commission percentage on sales and commission percentage on profit are stored in the system. For example, John is a salesperson with a base salary of $50,000 per year plus 2-percent commission on the sales price for all sales he makes plus another 5 percent of

   Added on 2023-05-27

ShareRelated Documents
Running head: DATABASE SYSTEM MODELLING 1
Database System Modelling
Granite Sales Company Database System
[Student Name]
[University Name]
Database System Modelling for Granite Sales Company_1
2DATABASE SYSTEM MODELLING
Table of Contents
1 Introduction.........................................................................................................................................3
2 Task 1: Possible business rules............................................................................................................3
3 Task 2: The granite sales company Entity Relationship Diagrams (ERDs).........................................4
3.1 SQL query...................................................................................................................................4
3.2 SQL implemented entity relation diagram...................................................................................6
3.3 Entity relation diagram using draw.io..........................................................................................7
4 Reference.............................................................................................................................................8
Database System Modelling for Granite Sales Company_2
3DATABASE SYSTEM MODELLING
1 Introduction
The granite sales company is a growing company and has a number of employees and they are
allocated n various departments however the company keeps the details of the employees and the
departments as well.
There are various employees in one department but the employees are only allocated in one
department, there are two major categories of employees who are either salaried, hourly or
contract employees.
The salaried employees can as well act as sales people who get commissions on top of their
monthly salaries and their annual salaries are recorded in the system, however the sales
commissions on sales and profits are all captured in the system.
Below are the various tables obtained from the granite sales company scenario.
i. Department(DepartID, department_name, mail_box_number, office_phone)
ii. Employees(Employees_NO,Name,address, telephone,type, DepartID)
iii. Hourly_Employees(HourlyID,hourly_wage,target_weekly_work_hours,
Employees_NO) (Kahate, 2013).
iv. Salariedemployees(SalaryID, yearly_salary_amount, Employees_NO)
v. Salespeople(SalesID, commission_percentage_sales, commission_percentage_ profit,
Employees_NO)
vi. Contract_Employees(ContractID,beginning_date,end_dates,billing_rate,
Employees_NO)
2 Task 1: Possible business rules
Below are the various business rules for the granite sales company.
i. The company can have many departments.
ii. The company can have many employees.
iii. One department can have many employees (Carlos, 2017).
iv. One employee belongs only to one department.
v. There are many types of employees.
Database System Modelling for Granite Sales Company_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Business Data Management and Analytics Assignment 2022
|10
|1141
|5

Task 1 CREATE TABLE EMPDB
|7
|1224
|62

Advanced Management Console
|35
|7601
|31

Database Design and SQL
|29
|3169
|92

Gaming Shop Databas Assignment
|9
|755
|283

Database System : SQL Queries
|14
|2042
|9