It's UWAweek 18 (1st semester, week 9)

help1402

This forum is provided to promote discussion amongst students enrolled in CITS1402 Relational Database Management Systems.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 4 articles in this topic
Showing 4 of 102 articles.
Currently 3 other people reading this forum.


 UWA week 15 (1st semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
2:26pm Fri 12th Apr, Reuben S.

Can we create a primary key in an instance where there are multiple primary keys (Appointments table). So we can link it to the relevant tables. Thanks


SVG not supported

Login to reply

👍?
helpful
9:07pm Fri 12th Apr, Maira A.

Hi Reuben, Absolutely, you can have a composite primary key in the Appointments table if you deem it necessary. For instance, if there's a relationship between appointments, patients, and surgeons, you can designate an attribute (think of which attribute) as the primary key or partial primary key within the appointment entity. This remains true even if additional attributes are needed later on in the physical design phase to create a composite primary key. "Reuben Stanley" <23*7*3*5@s*u*e*t*u*a*e*u*a*> wrote:
> Can we create a primary key in an instance where there are multiple primary keys (Appointments table). So we can link it to the relevant tables. Thanks


SVG not supported

Login to reply

👍?
helpful
10:20am Sat 13th Apr, Reuben S.

Great, thanks. Also are we allowed to create a relationship between subclasses? I have set up the Client superclass with patient and customer subclasses, so am I able to create a customerID (seperate from the ClientID), that I can link to the patient table so that the patient can have a record who is paying for their appointment? And just to clarify, I know we aren't meant to note foreign keys, but do we include them as regular attributes in the entities? For example can I include the patients identifier in appointments entity? Thank you


SVG not supported

Login to reply

👍?
helpful
8:38pm Sat 13th Apr, Mehwish N.

Yes, you can have a relationship between subclasses. As far as including foreign keys as regular attributes, do not do that. Whenever, you are doubt, check the ERD in the dreamhome case study. Cheers Mehwish

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy