primary key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how do you choose a proper field so as to be set as a primary key?
thanks sharon
 
shar said:
how do you choose a proper field so as to be set as a primary key?
thanks sharon

You would choose or create a field that would be unique for each record.
That is there is and will not be any duplicates. Normally you would want
that field to be small, like a number but there is no requirement.
 
Joseph Meehan said:
You would choose or create a field that would be unique for each record.
That is there is and will not be any duplicates. Normally you would want
that field to be small, like a number but there is no requirement.



--
Joseph Meehan

Dia duit

so if u had 4 fields: product ID, product name, discontinued and Unit price, the obvious ans would be product ID right?
 
Joseph Meehan said:
You would choose or create a field that would be unique for each record.
That is there is and will not be any duplicates. Normally you would want
that field to be small, like a number but there is no requirement.



--
Joseph Meehan

Dia duit

so if you had 4 fields say product ID, product name, discontinued and unit price the primary key would be product ID right?
 
shar said:
so if u had 4 fields: product ID, product name, discontinued and
Unit price, the obvious ans would be product ID right?

Likely. You would want to check to make sure there were no duplicates.
Likely you would want to do that anyway. :-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top