match data of one field with part of data of another field.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I need to match the data of one field of a table with part of a field of
another table. This data can be in any part of the field.
 
This is not a relational design, and will not work efficiently.

A basic rule of normalized data design is to make each field atomic. This
means each field contains only one thing, and so you will not be matching
part of one field against another.

If you want to do it anyway, try a query like this:
SELECT tClient.Surname
FROM tClient INNER JOIN tClient_1
ON "*" & tClient.Surname & "*" Like "*" & tClient_1.Surname & "*";

The example pulls up surnames that overlap between 2 tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top