Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Example Elements

Status
Not open for further replies.

caosity

Technical User
Sep 10, 2009
13
US
Is there a way in a double query (a query involving two tables) to use example elements to match records based on partial data in a particular field. For instance, I have two tables, both with a field for social security numbers. But the first table only has the last four digits. I want to get the information in the second table for the people listed in the first table using the person's last name and last four digits of the social. Can this be done?
 
Questions:
1) Do you assume that the records in the first table are the same as those in the second table?
2) Do you assume that only one person listed will have the same last four digits?
 
1) Yes, the records in one table are in the other.
2) No, there may be more than one person with the same last four digits, but I am also joining the tables by dates of birth. The likelihood that someone will have both information the same in our tables is slim at best.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top