Question
Note: Use MySQL RDBMS to answer the below Two questions.(just post the correct codes (don't POST screenshot)) Q1) 1-Create a new database. Name it: Hospital
Note: Use MySQL RDBMS to answer the below Two questions.(just post the correct codes (don't POST screenshot))
Q1)
1-Create a new database. Name it: Hospital.
2-Design and create all the tables of the database and apply the correct Data Types of the tables attributes.
3-Create the relationships that join the tables of Hospital database (Figure 1 represents the PKs, FKs and relationship types).
4-Create a view Patient_Doctor that shows the patients names, doctors names, appointment date and time.
Q2)
1-Use the developed database in Question 1 (Hospital Database) to implement the following:
2-Insert at least 10 records in each table in the Database
3-Modify the patient gender of one patient in table Patient.
4-Delete the record of the Doctor with ID = 29 from table Doctor. Discuss the outcome of delete statement when there is more than one appointment are assigned for the same doctor.
5-Report all hospitals of Dubai.
6-Report the doctors name and specialization, and gender of all doctors who are working in Dubai in ascending order by name and descending by specialization.
7-List the Id of the prescribed treatment for each patient ordered by patient name ascendingly.
Note: Use MySQL RDBMS to answer the below Two questions.(just post the correct codes (don't POST screenshot))
Report all patients who visited the hospital during 2022.
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