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 57 other people reading this forum.


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
5:13pm Tue 1st Oct, ANONYMOUS

Staff ------ StaffID Name Salary BranchID P100 Bluey 5000 A100 P200 Peppa Pig 10000 D200 null DanielTiger 8000 A200 In the above table, can BranchID be candidate key given StaffID as primary key?


SVG not supported

Login to reply

👍x1
helpful
9:48pm Tue 1st Oct, Hafiz A.

ANONYMOUS wrote: BranchID wont be unique in some cases. so this alone cannot be a candidate key. imagine having multiple people from same branch appearing in this table of yours.
> Staff > ------ > StaffID Name Salary BranchID > P100 Bluey 5000 A100 > P200 Peppa Pig 10000 D200 > null DanielTiger 8000 A200 > > In the above table, can BranchID be candidate key given StaffID as primary key?


SVG not supported

Login to reply

👍?
helpful
11:50pm Thu 3rd Oct, Kundan J.

But when we consider only above dataset, it can be considered as candidate key as all the datapoints are different. Is my understanding correct?

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