Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Database Theory > Re: Identifying...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 11 Topic 2489 of 2662
Post > Topic >>

Re: Identifying candidate keys and primary keys

by "David Cressey" <cressey73@[EMAIL PROTECTED] > Apr 13, 2008 at 09:40 PM

<noagbodjivictor@[EMAIL PROTECTED]
> wrote in message
news:7b355c27-a3c3-488b-994e-c2559a08a8b4@[EMAIL PROTECTED]
> On Apr 13, 7:05 am, "Brian Selzer" <br...@[EMAIL PROTECTED]
> wrote:
> > <noagbodjivic...@[EMAIL PROTECTED]
> wrote in message
> >
> >
news:fc37fe0e-476b-4a0b-8396-ab81c9a5f4a1@[EMAIL PROTECTED]
> >
> >
> >
> > > Hello guys, this one is for one of my assignments. I want
explanations
> > > and hints only.
> >
> > > I'm still confused with the concepts of candidate keys and primary
> > > key. We have a patient medication form from an hospital with these:
> >
> > > Heading: Patient number, Full name, Bed number, Ward number, Ward
> > > name.
> > > Then a table with this columns: drug number, name, description,
> > > dosage, method of admin, units per day, start date, finish date.
> >
> > > I have to find all the candidate keys and primary keys. I think
> > > candidate keys are the minimal superkeys.
> >
> > > I have found {Patient number, Ward number, Ward name}. I have
excluded
> > > {Patient number, Ward number, Ward name, Full name} and {Patient
> > > number, Ward number, Ward name, Full name, Bed number} which are
also
> > > superkeys but contain more attributes.
> >
> > Can a patient be in more than one ward (at the same time)?
> >
> > > This means that I have found only one candidate key, and this is
also
> > > the primary key I have found (a composite).
> >
> > > Since the question was "identify all the candidate keys" I thought
> > > maybe I dont really understand the concepts...
> >
> > http://en.wikipedia.org/wiki/Candidate_key
> >
> > > thanks for any help.
>
> Brian, I don't really know...
>
> I have been looking at how hospitals work here in US. From what I have
> learned online, I don't think it's possible to have a patient in
> multiple ward at the same time (and I can't confirm).
>
> Also from what I have learned it seems like the ward names are unique
> in hospital. It probably means that a ward number assigned to a name
> is also unique. So that when we take a name, we have the number. But I
> can't confirm that either, I have found all this by searching
> online...

No wonder you are confused by your assignment.  It sounds like the people
who gave you the assignment did not describe the subject matter in
sufficient detail for you to be able to determine the candidate keys. 
Were
they relying on you to use general knowledge of how hospitals work to
determine candidate keys?  Were they relying on you to do online searches
to
find out which combinations of columns are unique?

Or  (shudder) did they even understand the implications of the assignment
they were giving you?
 




 11 Posts in Topic:
Identifying candidate keys and primary keys
"noagbodjivictor@[EM  2008-04-13 02:29:27 
Re: Identifying candidate keys and primary keys
"Brian Selzer"   2008-04-13 07:05:20 
Re: Identifying candidate keys and primary keys
"David Cressey"  2008-04-13 11:51:23 
Re: Identifying candidate keys and primary keys
"noagbodjivictor@[EM  2008-04-13 13:02:41 
Re: Identifying candidate keys and primary keys
"David Cressey"  2008-04-13 21:40:53 
Re: Identifying candidate keys and primary keys
Bernard Peek <bap@[EMA  2008-04-16 22:07:18 
Re: Identifying candidate keys and primary keys
"Brian Selzer"   2008-04-13 21:50:31 
Re: Identifying candidate keys and primary keys
rpost@[EMAIL PROTECTED]   2008-04-16 18:59:12 
Re: Identifying candidate keys and primary keys
"Brian Selzer"   2008-04-17 01:05:35 
Re: Identifying candidate keys and primary keys
Philipp Post <Post.Phi  2008-04-15 08:01:04 
Re: Identifying candidate keys and primary keys
JOG <jog@[EMAIL PROTEC  2008-04-19 18:45:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 21:54:45 CDT 2008.