W
WindandWater
Hello,
I have a seemingly simple question:
In general when joining tables I assume we generally use
the default option which is an inner joing/ both tables joined on matching
records.
I have a few tables which have many to one, one to many relationships
and also a many to many table. I have some look up table which I don't
use refrential integrity
My Parent table is Quicksheet and my related related tables have
data that could exist or may not.
How do I define relationships that have a many to one/ one to many
relationship
but don't require the data every time I create a new record? From what I
have read
it seems that using referential integrity helps to make sure there are no
orphan
records but maybe it okay in my case?
Below is the main table tblQuicksheets:
tblQuicksheet:
quicksheetID PK (linked to junction table)
jobID Fk (linked to tblPLApackage)
enviroID Fk (look-up)
facilityID FK (look-up)
systemID Fk (look-up)
wireCenterID FK (look-up)
maintPriority
quickPriorityID FK (look-up)
quickStatusID FK (look-up)
techID
distArea
location
remarks
hazardID
platID FK
facilityID FK (look-up)
tblJunctionCableQS: (junction table)
junctionID
cableID FK
quicksheetID Fk
tblCables:
cableID PK
cableName
lowPR
highPR
cableLength
cableType
tblPLApackage:
plaPackageID
plapackageNum
jobID FK
I have a seemingly simple question:
In general when joining tables I assume we generally use
the default option which is an inner joing/ both tables joined on matching
records.
I have a few tables which have many to one, one to many relationships
and also a many to many table. I have some look up table which I don't
use refrential integrity
My Parent table is Quicksheet and my related related tables have
data that could exist or may not.
How do I define relationships that have a many to one/ one to many
relationship
but don't require the data every time I create a new record? From what I
have read
it seems that using referential integrity helps to make sure there are no
orphan
records but maybe it okay in my case?
Below is the main table tblQuicksheets:
tblQuicksheet:
quicksheetID PK (linked to junction table)
jobID Fk (linked to tblPLApackage)
enviroID Fk (look-up)
facilityID FK (look-up)
systemID Fk (look-up)
wireCenterID FK (look-up)
maintPriority
quickPriorityID FK (look-up)
quickStatusID FK (look-up)
techID
distArea
location
remarks
hazardID
platID FK
facilityID FK (look-up)
tblJunctionCableQS: (junction table)
junctionID
cableID FK
quicksheetID Fk
tblCables:
cableID PK
cableName
lowPR
highPR
cableLength
cableType
tblPLApackage:
plaPackageID
plapackageNum
jobID FK