Saved Bookmarks
| 1. |
In a hospital, patients are allocated to wards. A database named 'Hospital' is created. One table in this database is : WARD with WardId, WardName, NumOfBeds as columns and WardId as the primary key.Write another suitable table you could expect to see in 'Hospital' database, with 3 suitable columns identifying Primary key and Foreign key. |
|
Answer» CREATE TABLE PATIENT ( PID INT NOT NULL, PNAME VARCHAR(50), WardId INT NOT NULL, PRIMARY KEY(PID), FOREIGN KEY (WardId) REFERENCES Ward(WardId) ); |
|