I have two tables:
t_issue, containing the field issue_id (a primary key);
and
Department, containing the two fields
issue_id and ReferralDept, where issue_id is a foreign key in a many to one relation to the field in t_issue.
The problem is that prior to creating the latter table and its relation to t_issue, many records in t_issue were created; that is, there are records in t_issue with a connection to the table Department, with referential integrity, but there are many "old" records with no relation. That means, I have discovered, that a query involving both these tables will only show items where issue_id exists in both tables.
So the question is this: how can I create, say, an update query, to populate the newer table Department, with every issue_id field that is contained in the table t_issue but which is NOT already in Department already. I can get a list, via a query, of all such issue_id fields, and I'd like to import them into Department table with a dummy ReferralDept field, such as "NotReferred" or " ". Obviously I haven't been able to create the update query yet, because any query with Department in it becomes "blind" to the records in t_issue that are presently unrelated to it!!
Many thanks--
t_issue, containing the field issue_id (a primary key);
and
Department, containing the two fields
issue_id and ReferralDept, where issue_id is a foreign key in a many to one relation to the field in t_issue.
The problem is that prior to creating the latter table and its relation to t_issue, many records in t_issue were created; that is, there are records in t_issue with a connection to the table Department, with referential integrity, but there are many "old" records with no relation. That means, I have discovered, that a query involving both these tables will only show items where issue_id exists in both tables.
So the question is this: how can I create, say, an update query, to populate the newer table Department, with every issue_id field that is contained in the table t_issue but which is NOT already in Department already. I can get a list, via a query, of all such issue_id fields, and I'd like to import them into Department table with a dummy ReferralDept field, such as "NotReferred" or " ". Obviously I haven't been able to create the update query yet, because any query with Department in it becomes "blind" to the records in t_issue that are presently unrelated to it!!
Many thanks--