I would like to create a Union query
My table relationship:
tbl_FW_Main
PubID (Primary KEY - unique code - text)
Title (text)
Department (text)
Date_Published (text)
Publisher (text)
Report_Location (text)
Authors (text)
Tbl_Waterbody
PubID (foreign key - text)
WaterbodyName (text)
Watershedcode (text)
AliasName (text)
LakeSeq (text)
WsCode_LakeSeq (text)
Tbl_Species
PUBID (foreign key - text)
Speciescode (text)
tbl_FW_Main - this table is the 'one' side of relationship. This table is linked to the other tables by "PUBID". There are no duplicate pubid in this table. For example, one pubID will link to many records in either tbl_species or tbl_waterbody
tbl_waterbody- this table is on the "many" side of the relationship
tbl_species - this table is on the "many" side of the relationship
I need to merge 2 queries into 1 because tbl_Waterbody and tbl_Species each have a relationship with tbl_FW_Main, they do not have a relationship with each other.
UNION queries are new to me, and am confused as how to create one. I need all fields from all three tables to be in the query output and I don't want duplicating records in the output as well.
I have read through example on UNION queries, but and still fairly confused.
My table relationship:
tbl_FW_Main
PubID (Primary KEY - unique code - text)
Title (text)
Department (text)
Date_Published (text)
Publisher (text)
Report_Location (text)
Authors (text)
Tbl_Waterbody
PubID (foreign key - text)
WaterbodyName (text)
Watershedcode (text)
AliasName (text)
LakeSeq (text)
WsCode_LakeSeq (text)
Tbl_Species
PUBID (foreign key - text)
Speciescode (text)
tbl_FW_Main - this table is the 'one' side of relationship. This table is linked to the other tables by "PUBID". There are no duplicate pubid in this table. For example, one pubID will link to many records in either tbl_species or tbl_waterbody
tbl_waterbody- this table is on the "many" side of the relationship
tbl_species - this table is on the "many" side of the relationship
I need to merge 2 queries into 1 because tbl_Waterbody and tbl_Species each have a relationship with tbl_FW_Main, they do not have a relationship with each other.
UNION queries are new to me, and am confused as how to create one. I need all fields from all three tables to be in the query output and I don't want duplicating records in the output as well.
I have read through example on UNION queries, but and still fairly confused.