Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

M Insert the following records into the table DOCTOR PATIENT Table DOCTOR DOC_ID DOC Nume Deput Salary D1345 Jole Cardio 150000 D1246 Alice no DINY

image text in transcribed
M Insert the following records into the table DOCTOR PATIENT Table DOCTOR DOC_ID DOC Nume Deput Salary D1345 Jole Cardio 150000 D1246 Alice no DINY John 260055 D120 Zam Onde 22005 D139 Alice Cardio 200025 Cat Table:PATIENT PUID 4662 4222 3111 3114 Pur Name Maaa A Garder F M F Dar Vished 2005 12/122020 DOCED DI DIX D1146 Ram Sala 3007201 Wiste an SQL query to display Doctor Name, Patient same and number of months between wysdate and Date_Visited from the tables DOCTOR, PATIENT (Hint: Use RIGHT OUTER JOIN) (2.5 Maria) B. Write an SQL query to deeplay Doctor Id, round salary to ce decimal point, Gender from the tables DOCTOR PATIENT where the patient name starts with letter M. (ue Natural Join) (2.5 Music) c. Write an SQL query to display Patient name and Dute vited in the format month dayt,year for the patients where doctor id is D1245 and id D1246 0.5 Marks) & Write an SQL query to display Doctor name and department from DOCTOR table where the Doctor Dis equal to the Doctor ID of patients visited on 2005/2001. Hint. Une Subquery] (2.5 Marks) Note: use (apex.oracle)

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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

4. Design a career management system.

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago