I am having trouble setting up the relationships in my database correctly and looking for any help that anyone can provide. Here are my tables (some tables have many fields so I will only list the primary key which is the only similary field in the tables, if you need more info just ask)
Table A
SO Num (Primary Key)
Table B
SO Num (Primary Key)
Table C
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table D
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table E
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table F
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table G
SO Num (Primary key)
The relationships need to be set up (referential integrity enforced?) so that a record with a SO Num of 123 cannot be entered in Table B before it is entered in table A and so on. Each table has a form based off of it. Each form will be filled out by a different department within the company and must be done in order. Would it be better to get rid of the SOIRR field and just make SO Num and IRR Num a combined primary key? Any help would be appreciated. Thank you.
Table A
SO Num (Primary Key)
Table B
SO Num (Primary Key)
Table C
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table D
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table E
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table F
SO Num
IRR Num
SOIRR(primary key, automatically fills in with SO and IRR Num values)
Table G
SO Num (Primary key)
The relationships need to be set up (referential integrity enforced?) so that a record with a SO Num of 123 cannot be entered in Table B before it is entered in table A and so on. Each table has a form based off of it. Each form will be filled out by a different department within the company and must be done in order. Would it be better to get rid of the SOIRR field and just make SO Num and IRR Num a combined primary key? Any help would be appreciated. Thank you.