Re: Link Multiple Criteria
- From: "Steve" <help_available_at_very_reasonable_rates@xxxxxxxxxxxxx>
- Date: Thu, 9 Jul 2009 20:04:58 -0400
Number data type, Long Integer Format.
Steve
santus@xxxxxxxx
"Beetle" <Beetle@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:64E6C67E-5BA3-4BB5-ADDE-69667860FC90@xxxxxxxxxxxxxxxx
You can use Autonumber for those PK fields. The Autonumber
data type will never repeat a value. The corresponding FK
fields in tblRiskControls must be Number (not Autonumber).
--
_________
Sean Bailey
"JD McLeod" wrote:
Can the primary key in tblRisks for RISKID and tblControls ControlID be
an
autonumber? Is there a risk that the autonumber may reset and i end up
with
duplicates? Or, should i come up with unique IDs for each risk and
control,
maybe a combination of letters and numbers. thanks.
"Beetle" wrote:
It sound like you have, essentially, a many-to-many
relationship between Risks and Controls, in which case
you need a third table to manage it. Example;
tblRisks
******
RiskID (Primary Key)
RiskName
other attributes of each Risk
tblControls
********
ControlID (PK)
ControlName
PersonID (Foreign Key to tblPersons)
other attributes of each Control
tblRiskControls
***********
RiskID (FK to tblRisks)
ControlID (FK to tblControls)
any attributes that are specific to the relationship
(RiskID and ControlID would be a combined PK for the above table)
tblPersons
********
PersonID(PK)
FirstName
LastName
Title
other attributes of each person
--
_________
Sean Bailey
"JD McLeod" wrote:
I am creating a database for risk management. In this database,
users will
input risks and the controls that mitigate those risks. The problem
I am
having in designing the table is that one control may mitigate more
than one
risk. I envision a table for the risks which contains all of the
details
such as risk type, risk category etc. I then thought I would have a
table
for the controls and related data such as performance frequency,
person
responsible, etc. Where I am stuck is on how to "assign" (link) one
of the
controls to one or more risks. I am just beginning to look at the
table
design, so any help or thoughts on how to accomplish this would be
appreciated.
.
- References:
- Link Multiple Criteria
- From: JD McLeod
- RE: Link Multiple Criteria
- From: Beetle
- RE: Link Multiple Criteria
- From: JD McLeod
- RE: Link Multiple Criteria
- From: Beetle
- Link Multiple Criteria
- Prev by Date: Re: do I need more indexes?
- Next by Date: Re: do I need more indexes?
- Previous by thread: RE: Link Multiple Criteria
- Next by thread: Re: Link Multiple Criteria
- Index(es):
Relevant Pages
|