It's UWAweek 47

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 3 articles in this topic
Showing 3 of 684 articles.
Currently 123 other people reading this forum.


 UWA week 43 (2nd semester, study break) ↓
SVG not supported

Login to reply

👍x1
helpful
1:53pm Sun 27th Oct, ANONYMOUS

Hi, I have a few questions related to the the logical modelling section to discuss. Q1 . When there is {mandatory,AND} constraints, shouldn't we be putting flag attributes in the single relation? In the sample question it is not included. Q2. Is there a need to include alternate keys when deriving relations? Q3. When identifying whether attribute can be NULL or NOT NULL, Besides the primary keys, shouldn't we also include whether foreign keys could be NULL or NOT? Thank you for your help!


SVG not supported

Login to reply

👍?
helpful
2:54pm Sun 27th Oct, Mehwish N.

1. Someone also asked this question on the email. Since all books can be up for sale and loan, you do not need to include a flag. However, if you include a flag, that is also fine. 2. No, you do not need to define alternate keys (recall the lecture). You can if you want to. However, make sure to define the primary keys. 3. Regarding "Not NULL". You do need to mention primary keys (also note in sqlite, you specifically need to mention PK NOT NULL). Regarding FKs, it is possible in some cases to have a NULL FK . However, if there is a mandatory participation of a FK, in that case FK will be not null. Also with FKs do mention the actions for ON DELTE and ON UPDATE. Cheers


SVG not supported

Login to reply

👍?
helpful
3:12pm Sun 27th Oct, ANONYMOUS

Thank you for the quick reply. In a case if a subclass/subclasses don't have their own attributes, then there would be a need to include flags. Is that right?

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  8:08AM Aug 25 2024
Privacy policy