I have two tables a and b in my Access Database. In both tables I have the field ID. However in table a my ID field is prefixed with '31' where as my ID field in table b is not.
So for example
table a table b
ID field2 ID field3
31L123 test123 L123 123test
31L122 test321 L122 321test
My prefixed field table is imported regularly from an Excel export, I understand I could remove the prefix at the excel level but is there a way to join the two tables on the ID field by using some sort of Concatenate function on the join within the SQL statement by any chance?
So for example something along the lines of:
SELECT Id, Field2, Field3
FROM a LEFT JOIN b ON CONCATENATE('31', a.ID) = b.ID
WHERE a.Field2 = 13
I am not sure if this is the correct approach or not - and that is why I can not seem to find any existing help on my problem (ignoring processing the fields at the excel level before the import).