The questions are written inside this the pdf. Follow them and stick to them. I need full points on this assignment. Avoid plagiarism, and the use of Artificial Intelligence (AI) tools, or any other tool to solve this assignment. You must submit the essay in MS Word (.doc, .docx). If you have any questions, contact me. Thank you.
Category: Databases
2 Marks Learning Outcome(3): Create Entity-Relationship model, Rel
2 Marks
Learning Outcome(3):
Create Entity-Relationship model, Relational model, and write SQL queries.
Question One
Based on your understanding of specialization and generalization constraints, use your own words to define and discuss the two primary constraints: Disjointness Constraint and Completeness Constraint.
Answer:
2 Marks
Learning Outcome(3):
Create Entity-Relationship model, Relational model, and write SQL queries.
Question Two Show the schema mapping of the following Payment EER schema diagram, using Option 8A: Multiple relations-Superclass and subclasses.
Answer:
2 Marks
Learning Outcome(3):
Create Entity-Relationship model, Relational model, and write SQL queries.
Question Three SQL constraints are used to specify rules for the data in a table. From what has been studied, what is the benefit of using constraints in DB. Also, explain three common SQL constraints.
2 Marks
Learning Outcome(3):
Create Entity-Relationship model, Relational model, and write SQL queries.
Question Four Using the relational algebra operations, write the following queries on the COMPANY relational database schema shown in the figure below.
Retrieve the address of employees in department 2 who work less than 5 hours per week on the ‘ProductX’ project.
Retrieve the names and salary of employees who work on every project.
Answer
Instructions: Zero mark will be given if you try to bypass the SafeAssign (e.g.
Instructions: Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
You are advised to make your work clear and well-presented.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
Question One:
Based on your understanding of specialization and generalization constraints, use your own words to define and discuss the two primary constraints: Disjointness Constraint and Completeness Constraint.
Question Two
Show the schema mapping of the following Payment EER schema diagram, using Option 8A: Multiple relations-Superclass and subclasses.
Question Three
SQL constraints are used to specify rules for the data in a table. From what has been studied, what is the benefit of using constraints in DB. Also, explain three common SQL constraint.
Question Four
Using therelational algebra operations, write the following queries on the COMPANY relational database schema shown in the figure below.
(a) Retrieve the address of employees in department 2 who work less than 5 hours per week on the ‘ProductX’ project. (b) Retrieve the names and salary of employees who work one very project.
Instructions Suppose you are a database administrator in a large company, and yo
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)
Please pay attention to the instructions and discipline and take into account th
Please pay attention to the instructions and discipline and take into account that there is no similarity with any other student. If you need any information, please send it to me
Make sure that you include evereting
The project contains a report and presentation file There is a right chart and a
The project contains a report and presentation file
There is a right chart and a Build an active Dashboard
You must submit two separate copies (one Word file and one PDF file) using the A
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
InstructionsLearning Outcome(s):
CLO4: Develop a standard database using DBMS.
CLO3: Analyze algorithms for query processing.
CLO1: Recognize database file organization and indexing.
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.
Each group can have a minimum of 3 and a maximum of 4 students.
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.
14 Marks
Learning Outcome(s):
CLO4: Develop a standard database using DBMS.
CLO3: Analyze algorithms for query processing.
CLO1: Recognize database file organization and indexing.
Project Description
Part 1: Database Description and Design
1-Describe your database scenario (Don’t select any database which we studied during lab session or lecture) with at least 5 Entities. (1 Mark)
2-Design an Entity Relationship (ER) diagram to capture the scenario requirements. Make sure cardinalities, relationships, and primary keys are clear. State any assumptions that may affect the ER diagram. Your ER should include 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 Relations
1-Map the ER diagram to a relational model and create the relations in MySQL. (1 Mark)
2-Enter at least 20 tuples (records) in each relation/table. Your solution should include the screenshots of your relations with data. (1 Mark)
Part 3: Indexes and Queries
1-Write any retrieval query that includes a selection condition and show how MySQL internally performed this query. (1 Mark)
2-Create an index for the same column used in the previous selection condition. (1 Mark)
3-Repeat the same retrieval query in step (1) and show how MySQL internally performed the query this time. Discuss how the created index improves the performance of your database. (1 Mark)
4-Write any retrieval query that includes at least one join condition and one selection condition and show the result of this query. (1 Mark)
5-Show the Query Statistics and Execution Plan for the above query. (1 Mark)
Part 4: Roles and Privileges
1-Create two roles and assign the following privileges to the roles (1 Mark):
-Give all privileges to the first role.
-Give only insert privileges to the second role who can further assign the same privileges to others.
2-Create two accounts and assign the above roles to the created accounts (each account with a different role). (1 Mark)
3-Verify the privileges assigned to each account. (1 Mark)
Please expand your design for database system which supports Social media databa
Please expand your design for database system which supports Social media database (Twitter in particular), as given in the homework. The final project may covers, as much as possible, the following:
1. Basic overview of the data processing of your DBMS systems
2. dbase model: metadata, dbase structure, E-R diagram
3. few data in the Database,
4. please use MS-Access at least with 3 tables and relationship link
5. Output information to be generated by your dbase
6. Example of data processing and information search/query on your dbase
7. include input form to be used to enter, edit and delete record.
8. create Query to show certain data processing / filtering
9. give example of this query using SQL instruction and explain about it.
10. also create (output) report, and VBA programs if possible in your database.
11. add YOUR-NAME in the 1st RECORD in the dbase
(e.g. in customer table & show it in your Query).
12. The report is around 800 words.Please submit your individual report:
1) MS-Word file ALL software are based on PC WINDOWS SYSTEM (not Apple Mac).
You must submit two separate copies (one Word file and one PDF file) using the A
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g., misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
Project Instructions
You can work on this project as a group (minimum 3 and maximum 4 students). Each group member must submit the project individually with all group member names mentioned in the cover page.
This project worth 14 marks and will be distributed as in the following:
a)Identify the entity types, attributes, keys. (2 marks)
b)Identify the relationship and cardinalities. (2 marks)
c)Draw the ERD. (2 marks)
d)Schemas before Normalization. (1.5 marks)
e)Schemas after Normalization. (1.5 marks)
f)Create the tables. (1.5 marks)
g)Populate your tables with at least 5 rows. (1.5 marks)
h)Execute the requested sample queries. (2 marks)
Each student must submit one report about his/her chosen Project via the Blackboard (Email submission will not be accepted which will be awarded ZERO marks)
Screenshots for answering SQL questions (f, g, and h).
You are advised to make your work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
A)Late submission will result in ZERO marks being awarded.
B)The work should be your own, copying from students or other resources will result in ZERO marks.
Learning Outcome(s):
LO 4
Design a database starting from the conceptual design to the implementation of database schemas.
LO 3
Create Entity-Relationship model, Relational model, and write SQL queries.
Hospital Management System
Year 2030, you are hired as a database developer in local hospital. The top management of the hospital is interested to design a new database to manage their daily routine work. In the requirement identification phase, you have identified five core elements in the hospital:
Patients: The hospital stores crucial patient data, including their personal information (first name, last name, date of birth, gender), contact details (phone number, address), insurance information, and their medical history.
Doctors: Hospital also maintains records of the medical professionals, including their specialization, contact information, license number, office hours, and email addresses.
Appointments: For efficient management of the patients visits to the hospitals, the data about each appointment is stores as it connects patients with specific doctors. The appointment date and time, the reason for the visit, and the appointment status (e.g., scheduled, canceled, completed) is also stored.
Medical Records: A comprehensive record of patients’ medical histories is maintained. It includes diagnosis details, treatment plans, prescriptions, test results, and the date of each medical visit. These records are associated with both patients and doctors.
Medical Staff: Data related to hospital staff members, such as nurses, receptionists, and administrators is also stored. Information like their roles, contact details, shift timings, and salary is recorded for proper staff management.
Hospital Management System
a)Fill the table below with all the Entities based on the given requirements:
Entity Type
Attributes of the Entity
Key
b)Fill the table below with all the relationship type based on the given requirements.
Relationship Type
Entities connected by the relationship type
Cardinality
Relationship attribute
c)Draw the ER diagram
d)Fill the table below with all schemas before normalization.
Schema Name
Schema Attribute
Key
e)Fill the table below with all schemas after normalization up to the 3NF.
Schema Name
Schema Attribute
Key
f)Write the necessary SQL statements to create the tables.
g)Insert at least five rows into each table.
h)Write SQL queries to find the following:
1)List of Doctors who have performed more than 10 surgeries.
2)List of Patients admitted for surgery between 1/9/2023 and 31/9/2023.
3)List of all the Patients who have not paid their bills till today.
4)List of Doctors on leave in a particular month.
5)List of Appointments with each Doctor with Patient name for a particular day.
Be sure to read Chapter 9 to do this exercise. You will be creating a database s
Be sure to read Chapter 9 to do this exercise. You will be creating a database schema which means there will be tables to represent the date in TopText Publishing. What other concepts do you have to consider in creating the DBMS?
Use Microsoft Access to create a DBMS for the imaginary company called TopText Publishing. Add several sample records to each table.
TopText Publishing is a textbook publishing company with a headquarters location, a warehouse, and three sales offices that each has a sales manager and sales reps. TopText sells to schools, colleges, and individual customers. Many authors write more than one book for TopText, and more than one author writes some books. TopText maintains an active list of more than 100 books, each identified by a universal code called an ISBN.
NOET :
– I need the answer to be in word file , the first page ( databases schema with relations) , the other pages contain tables with sample data no more than 7 record for each table.
– Also share with me the Microsoft Access Database file (.accdb).