• Home
  • Blog
  • Please assist with this assignment

Please assist with this assignment

0 comments

Objectives

  • Creating and modifying views
  • Create, rename and drop users
  • Grant view and revoke user privileges
  • Query for data
  • Backup your database

Requirements

  • Identify the types of users that would be using your database by job type. For example, you might have a sales clerk entering sales information and an hr rep entering personnel information. You should have at least 3 different categories of users for your system.
  • For each user category, determine which tables they would need access to and the type of access they would need (select, update, insert, delete, grant)
  • Identify at least one view for each user category that would help them easily retrieve the data that they need access to. One of the views should be an updatable view.
  • Create the views and save the commands in a script file named -user-views.sql.
  • For each user category, identify and write 5 queries that they would need to use on a regular basis. You should have 15 queries, including the following.
    • At least 2 queries that join tables
    • At least 1 insert query, 1 update query and 1 delete query
    • At least 1 queries that uses a view
    • At least 1 query that includes a calculation or an aggregate function.
    • Save your queries in a .sql file named -user-queries.sql.
  • Create one user for each role and grant them the privileges they need to do their job. Save the commands in a lastname-user-roles.sql file
  • Describe to me the role of each user, the access needed, the views created and why. This may be in a text file or typed into the comments for the assignment.
  • Perform a full backup of your database using the Export function in the workbench. Save the file backup.sql.
  • Attach all sql queries (views, queries, users and roles) as well as the database export file to this assignment.

Lecture Resources

MySQL Database Maintenance and Backup Article

Articles (bhcwebdev.com)

Database maintenance is critical to the health of any application relying on data integrity. Applications need continuous surveillance for data anomalies, load balancing and data breaches.

MySQL Database Security Article

Articles (bhcwebdev.com)

Database administrations starts with the creation of user accounts, granting user access to database objects and managing the security of the database. There are useful tools built into MySQL to help manage database security.

Instructor Notes

Grading Rubric

Criteria

Points

Identify 3 categories of users and the access required.

5 points

Create 3 views – 1 for each category. (lastname-user-views.sql)

15 points

Create 1 user for each category and grant them access to the tables and views required.

15 points

Describe the roles of each user, access needed, views created and why. (lastname-user-roles.sql)

15 points

Create 15 queries. (lastname-user-queries.sql)

  • At least 2 queries that join tables
  • At least 1 insert query, 1 update query and 1 delete query
  • At least 1 queries that uses a view
  • At least 1 query that includes a calculation or an aggregate function.

30 points

Full database backup with structure and data. (lastname-backup.sql)

20 points

Total

100 points

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}