I have two tables with a 1-many relationship. I want to write a
select statement that looks in the table w/many records and compares
it to the records in the primary table to see if there are any records
that do not match based on a certain field.
Here is how my tables are setup:
Task Code Table
TCode,TCodeFNam e,Active
Tracking Table(multiple records)
ID,User,Project Code,TCode,Hour s,Date
I want to look at the tracking table and see if there are any TCode
listed here that are not listed in the Task Code table.
How do I write a SQL statement to do this?
select statement that looks in the table w/many records and compares
it to the records in the primary table to see if there are any records
that do not match based on a certain field.
Here is how my tables are setup:
Task Code Table
TCode,TCodeFNam e,Active
Tracking Table(multiple records)
ID,User,Project Code,TCode,Hour s,Date
I want to look at the tracking table and see if there are any TCode
listed here that are not listed in the Task Code table.
How do I write a SQL statement to do this?
Comment