E
ellie
Hello
I am relatively new to creating databases. I can create the table,
understand (??) PK and FK in theory. Here's my issue:
I have a main table: [all_document_info] with fields
[PK]
[reference_number]
[last_ref_used]
[from_short]
[from_long]
I have a second table [dept_refs_name] that contains the data needed in the
above fields:
[PKrefnumber]
[dept_acronym] relates to the from_short field
[full_dept_name1] relates to the from_long field
[ref_number] that relates to the reference_number field above.
This is where my limited knowledge runs out. from_short is a drop down and
I want the corresponding LAST data for that field input into from_long and
last_ref_used. So the table will be sorted by PK. It is a one to many
relationship (I think) or "if
[all_document_info.from_short]=[dept_refs_name.dept_acronym] then
[all_document_info.from_long]=[dept_refs_name.full_dept_name1] and
[all_document_info.last_ref_used]=[dept_refs_name.referene_number]
Can someone explain what I do next? I am truly stuck. Thanks Ellie
I am relatively new to creating databases. I can create the table,
understand (??) PK and FK in theory. Here's my issue:
I have a main table: [all_document_info] with fields
[PK]
[reference_number]
[last_ref_used]
[from_short]
[from_long]
I have a second table [dept_refs_name] that contains the data needed in the
above fields:
[PKrefnumber]
[dept_acronym] relates to the from_short field
[full_dept_name1] relates to the from_long field
[ref_number] that relates to the reference_number field above.
This is where my limited knowledge runs out. from_short is a drop down and
I want the corresponding LAST data for that field input into from_long and
last_ref_used. So the table will be sorted by PK. It is a one to many
relationship (I think) or "if
[all_document_info.from_short]=[dept_refs_name.dept_acronym] then
[all_document_info.from_long]=[dept_refs_name.full_dept_name1] and
[all_document_info.last_ref_used]=[dept_refs_name.referene_number]
Can someone explain what I do next? I am truly stuck. Thanks Ellie