H
harperwork18
Hello, I'm still trying to grapple with primary keys. I have many
tables that, through the help of these forums, are normalized. But many
of them do not have--at least I do not think they have--natural keys.
So I'm using autonumbers all over the place, which makes me queasy. I
know there are debates on using autonumbers and please, I'd like to not
see a repeat here; I'd just like it if an expert can look at a few
tables (below) and tell me if indeed it seems I can't help but use
autonumbers...thank you, harper
tblComputerTests
TestID autonumber PK
TestName (like "CompTest" and "TechSelfAssess"
UseBegan (date)
UseEnded (date) -- over time we've retired some tests and developed new
ones
tblComputerTestAreas (tests have sections that receive scores, then the
scores are tallied)
TestID FK
TestAreaID autonumber PK
TestAreaName(i.e. MSWord, MSPowerPoint--these names duplicate: the
tests have areas that are the same--for example, virtually all computer
assessments we've used test MSWord skills)
tblEmployeesandTestScores
EmployeeID PK
TestAreaID
Score
Questions: 1) do you see any way that the first two tables can get rid
of autonumbers? 2) what is the value of having 2-field primary keys and
would the first table be a candidate for that (TestID and TestName) 3)
Is it generally a bad idea to use text for a primary key?
Thank you!!
tables that, through the help of these forums, are normalized. But many
of them do not have--at least I do not think they have--natural keys.
So I'm using autonumbers all over the place, which makes me queasy. I
know there are debates on using autonumbers and please, I'd like to not
see a repeat here; I'd just like it if an expert can look at a few
tables (below) and tell me if indeed it seems I can't help but use
autonumbers...thank you, harper
tblComputerTests
TestID autonumber PK
TestName (like "CompTest" and "TechSelfAssess"
UseBegan (date)
UseEnded (date) -- over time we've retired some tests and developed new
ones
tblComputerTestAreas (tests have sections that receive scores, then the
scores are tallied)
TestID FK
TestAreaID autonumber PK
TestAreaName(i.e. MSWord, MSPowerPoint--these names duplicate: the
tests have areas that are the same--for example, virtually all computer
assessments we've used test MSWord skills)
tblEmployeesandTestScores
EmployeeID PK
TestAreaID
Score
Questions: 1) do you see any way that the first two tables can get rid
of autonumbers? 2) what is the value of having 2-field primary keys and
would the first table be a candidate for that (TestID and TestName) 3)
Is it generally a bad idea to use text for a primary key?
Thank you!!