I have two tables: One contains counts data for state highways. The other contains information on a segmentation scheme for each of the highways. Both tables contain a variable entitled Route Number. Every possible Route Number is in Table One. Only record numbers for routes where segments have been defined are in Table Two. The two files are each sorted by Route Number, and values of Route Number repeat themselves in each file.
I want to create a Boolean Variable (True/False) in a query that will indicate for each record in Table One whether its value for Route Number exists in any record in Table Two
An Example may prove helpful
Table One Table Two Route Number Route Number 2 5 2 5 5 10 5 10 5 105 10 710 10 710 10 10 91 105 710
How can I create the result query?
Result Query Value of Route Number from
Records inTable OneBoolean Variable Reason for Value of Boolean 2 False No Record in File Two has Route Number=2 2 False No Record in File Two has Route Number=2 5 True At least one record in File Two has Route Number=5 5 Tue At least one record in File Two has Route Number=5 5 True At least one record in File Two has Route Number=5 10 True At least one record in File Two has Route Number=10 10 True At least one record in File Two has Route Number=10 10 True At least one record in File Two has Route Number=10 10 True At least one record in File Two has Route Number=10 91 False No Record in File Two has Route Number=91 105 True At least one record in File Two has Route Number=105 710 True At least one record in File Two has Route Number=710