Question

Consider the following Relational Schema for a Hospital:

 




     
  • Doctor (ID, DoctorName, Speciality, JoinDate)



  •  

 

Where ID is the unique identifier for the doctor (Primary Key), and Speciality indicates the doctor's area of expertise.

 




     
  • Patient (PID, PatientName, Phone, ID)



  •  

 

Where PID is the unique identifier for the patient (Primary Key), and ID links the patient to their primary care doctor (Foreign Key).
a) Write the SQL statements to create these tables. You must include definitions for Primary Keys, Foreign Keys, and necessary constraints. Insert a few rows of meaningful data into each table.

11 Apr 2026
Answer :
Word Count : 201
The relational schema can be implemented using SQL by defining the Doctor table first, followed by the Patient table with proper key constraints to maintain referential integrity. The Doctor table includes a primary ______ ___ _______ _______ ___ _____ _______ _______ _______.
______ ____ _______ _____ ____ ______ _______ _____ __________.
___ ________ ________ _________ ___ _______ _________ ______ ____ ____ __________ ____.
_____ ____ ______ _______ _______ __________ ___.
________ ________ ________ ___ _______ _________.
____ _______ ______ _________ _____ _______ ___ ____ ____ ____ ___.
___ __________ ________ _______ ____ ___ _______ ________.
__________ _________ __________ _______ ____ ________ ________.
____ _________ ___ __________ _____ _____.
_______ ________ ______ _____ ____ _______ _____ _____ ______ _________.
___ ____ ___ __________ _______ ________.
________ __________ __________ _____ _______ _______ _______ _______ ________ _________.
________ _________ __________ ______ ________ __________ _________ ______ ____ _______ _____ _________.
_____ ____ _______ ________ _______ ____ ______ _____.
____ ______ ____ ____ __________ __________ _______.
________ ____ _____ ___ ____ _______.
________ _______ ________ _________ ___ _______ _____ ______ ________ _____ _____.
_______ ____ _________ _________ _______ _______ __________ _______.
__________ __________ _____ _________ _______ ___ ________.
___ ______ ____ __________ _________ _______ __________ ___.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Consider the following Relational Schema for a Hospital: 
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→