Normalized relations for a database

Part A.

Please use the database you created in the Week 4 Assignment. I have attached what was done in Week 4.

  1. Create a matrix to indicate permissions (read, insert, delete, modify) you would grant to different users of your database.
  2. Create at least two different users and implement their permissions using SQL statements.

Part B.

“Consider the following normalized relations for a database in a large retail store chain:

STORE (Store_ID, Region, Manager_ID, Square_Feet)

EMPLOYEE (Employee_ID, Where_Work, Employee_Name,

Employee_Address)

DEPARTMENT (Department_ID, Manager_ID, Sales_Goal)

SCHEDULE (Department_ID, Employee_ID, Date)

Assume that a data communications network links a computer at corporate headquarters with a computer in each retail outlet. The chain includes 50 stores with an average of 75 employees per store. There are 10 departments in each store. A daily schedule is maintained for five months (the previous two months, the current month, and next two months). Further assume that

  • Each store manager updates the employee work schedule for her or his store roughly five times per hour.
  • The corporation generates all payroll checks, employee notices, and other mailings for all employees for all stores.
  • The corporation establishes a new sales goal each month for each department.
  • The corporation hires and fires store managers and controls all information about store managers; store managers hire and fire all store employees and control all information about employees in that store.
  1. Would you recommend a distributed database, a centralized database, or a set of decentralized databases for this retail store chain? Please explain why.
  2. Assuming that some form of distributed database is justified, what would you recommend as a data distribution strategy for this retail store chain?” (Hoffer, Prescott, & Topi, 2009, p. ch.14 – 29 ).

How to solve
Normalized relations for a database Nursing Assignment Help

Introduction:

This assignment requires the creation of a matrix to set permissions for different users of a database, as well as implementing these permissions using SQL statements. Additionally, the assignment requires us to make a recommendation for a retail store chain’s database management system, including whether a distributed, centralized, or set of decentralized databases would be best, and what data distribution strategy would be ideal.

Part A:

1. Matrix indicating permissions for users of database:
| | Read | Insert | Delete | Modify |
|———-|——-|——–|——–|——–|
| Admin | x | x | x | x |
| Manager | x | x | | x |
| Employee | x | x | | |

2. SQL statements for implementing permissions:
CREATE USER ‘Admin’@’localhost’ IDENTIFIED BY ‘password’;
GRANT SELECT, INSERT, DELETE, UPDATE ON database_name.* TO ‘Admin’@’localhost’;

CREATE USER ‘Manager’@’localhost’ IDENTIFIED BY ‘password’;
GRANT SELECT, UPDATE ON database_name.* TO ‘Manager’@’localhost’;

CREATE USER ‘Employee’@’localhost’ IDENTIFIED BY ‘password’;
GRANT SELECT, INSERT ON database_name.* TO ‘Employee’@’localhost’;

Part B:

1. In this case, we would recommend a centralized database management system. While the data communications network could support a distributed system, it would be more challenging to maintain and manage the necessary infrastructure, especially with daily scheduling updates and monthly sales goal changes. Additionally, a centralized system allows for more efficient management and control of data.

2. For a centralized system, we recommend a replicated database with all the necessary data stored in a centralized location and accessible to all stores. This strategy eliminates communication issues and streamlines all data management. Additionally, it ensures that all relevant data is uniform across all stores and is up-to-date. Finally, it reduces the risk of errors and inconsistencies.

Reference:
Hoffer, J. A., Prescott, M. B., & Topi, H. (2009). Modern database management. Pearson Education.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

2-2 Discussion: Carl Rogers and Person-Centered Therapy  In 1965, a company called Educational and Psychological Films produced a series of therapy

2-2 Discussion: Carl Rogers and Person-Centered Therapy  In 1965, a company called Educational and Psychological Films produced a series of therapy vignettes called “the Gloria Tapes,” featuring the same woman, Gloria, in therapy sessions with the founders of three important psychotherapeutic approaches: Carl Rogers (client centered), Fritz Perls (Gestalt), and

1-2 Journal: Using Social Justice and Understanding Bias Specifically, you must address the following: Describe your most dominant social

1-2 Journal: Using Social Justice and Understanding Bias Specifically, you must address the following: Describe your most dominant social identities. Describe implicit bias represented within your most dominant identities. How does implicit bias show up in your most dominant identities? Identify the core principles of social justice. Describe how implicit bias impacts your understanding of the core

The Commerce Clause refers to Article 1, Section 8, Clause 3 of the U.S. Constitution. It authorizes Congress “to regulate commerce with foreign nations,

The Commerce Clause refers to Article 1, Section 8, Clause 3 of the U.S. Constitution. It authorizes Congress “to regulate commerce with foreign nations, and among the several states, and with the Indian tribes.” This is the fundamental source of authority for the federal regulation of commerce. However, the federal government’s authority to regulate