MS-ACCESS query to match first few characters in string comparision

Posted by neobee on Stack Overflow See other posts from Stack Overflow or by neobee
Published on 2012-09-12T07:17:39Z Indexed on 2012/09/13 9:38 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

What query is suitable to compare two tables specied below, however only part of string in location(table1) will matches with the Location(table2).

Location(table1)    Location(table2)
india- north        USxcs
India-west          Indiaasd
India- east         Indiaavvds
India- south        Africassdcasv
US- north           Africavasvdsa
us-west             UKsacvavsdv
uk- east            Indiacascsa
uk- south           UScssca
Africa-middle       Indiacsasca
Africa-south        Africaccc
Africa-east         UKcac
  1. only 1st two characters of location(table1) and 1st two characters of location(table2) should match. Please help

  2. only any four characters of location(table1)and any two characters of location(table2)should match.

© Stack Overflow or respective owner

Related posts about sql

Related posts about string