Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

The quastion is clear if you need any information ask please
E-ivoragrain orihospitan watabase

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

6. Have you used solid reasoning in your argument?

Answered: 1 week ago