Instructions Suppose you are a database administrator in a large company, and yo

Photo of author

By admin

Instructions
Suppose you are a database administrator in a large company, and you have been asked to create a new database. Create your database scenario and follow the following instructions.
You should use the same project document to prepare your answer. A word file and a PDF file should be provided.
You must use MySQL for database creation and manipulation.
Create ONE database scenario. All your answers should be according to the selected scenario.
Support your answer with a detailed explanation and screenshots.·
Part 1: DatabaseDescription and Design1- Describe your database scenario (Don’t select anydatabase which we studied during lab session or lecture) with at least 5 Entities. (1 Mark)2- Design an Entity Relationship (ER) diagram to capture thescenario requirements. Make sure cardinalities, relationships, and primary keysare clear. State any assumptions that may affect the ER diagram. Your ER shouldinclude at least 4 entities and 1“Many-to-many” relationship. (2 Marks)3- Convert the ER diagram to Class diagram. (1 Mark)·
Part 2: Create and Populate Relations1- Map the ER diagram to a relational model and create therelations in MySQL. (1 Mark)2- Enter at least 20tuples (records) in each relation/table. Your solution should include thescreenshots of your relations with data. (1 Mark)·
Part 3: Indexes and Queries1- Write any retrieval query that includes a selectioncondition and show how MySQL internally performed this query. (1 Mark)2- Create an index for the same column used in the previous selectioncondition. (1 Mark)3- Repeat the same retrieval query in step (1) and show howMySQL internally performed the query this time. Discuss how the createdindex improves the performance of your database. (1 Mark)4- Write any retrieval query that includes at least one joincondition and one selection condition and show the result of this query. (1Mark)5- Show the Query Statistics and Execution Plan for theabove query. (1 Mark)·
Part 4: Roles and Privileges1- Create two roles and assign the following privileges tothe roles (1 Mark):- Give all privileges to the first role.- Give only insert privileges to the second role who canfurther assign the same privileges to others.2- Create two accounts and assign the above roles to thecreated accounts (each account with a different role). (1 Mark)3- Verify the privileges assigned to each account. (1 Mark)