Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Database Management Systems II ( DBMS - 2 0 0 6 ) Challenge 5 Users and Roles Note: Use the JR _ Movie database in
Database Management Systems II DBMS
Challenge Users and Roles
Note: Use the JRMovie database in this challenge.
Create logins and user accounts for the following users. The login for each user must be their full name, capitalizing the first character of first and last name eg JenniferGarnet. The user id must be the first letter of the users first name and their full last name permissions will be given shortly Use your Red River Userid as the password for all user accounts.
User Name Employee Job
Jennifer Garnet Receptionist
Phil Blat Salesperson
Rhonda Seymore Sales Manager
Role Creation: Create the following roles. Do not embed permissions do not grant a role to a role Each role must have all required permissions defined.
Create a role called receptionistrole.
The receptionist role needs to have SELECT on the following tables:
Customer
RentalAgreement
MovieRented
Movie
Give Jennifer Garnet the receptionist role.
Create a role called salespersonrole.
The salesperson role needs select on the following tables:
Customer
RentalAgreement
MovieRented
Movie
In addition, the role requires INSERT on the RentalAgreement and MovieRented tables.
Give Phil Blat the sales person role.
Create a role called salesmanagerrole
The salesmanager role needs full permissions SELECT INSERT, UPDATE and DELETE on the following tables:
Customer
RentalAgreement
MovieRented
Movie
Give Rhonda Seymore both the salesperson and and sales manager roles.
Perform the following for all three accounts
Show the command necessary to impersonate the account
Write a sql statement SELECT INSERT, UPDATE and DELETE to test the permissions of each account for each table Customer RentalAgreement, MovieRented and Movie For each insert statement into the customer table ensure that the FNAME and LNAME columns your first name and last name
Include a comment before each statement of success or failure Was this expected why or why not?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started