Lab 10: Users and Views, Queries and Backup
Question Description
- 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.
- 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.
- Create one user for each role and grant them the privileges they need to do their job. Save the commands in a .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.
- Attach all sql queries (views, queries, users and privileges) as well as the database export file to this assignment.
- Use any database besides the Chinook database.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."