This seems like it should be easier than it is.
I'm trying to join two tables together in Access. They join on the field "product". One is a reference table containing fee rates for a subset of the products, and the other is sales data of all products.
The issue is that the sales products can have a leading designation of two characters added to the product. For example, a product could be sold as T2202, or U-T2202. I need to pick these variants of the products from the reference table, but I need the non-relevant products filtered out still.
My current attempts haven't worked at all; they either leave in too much or take out too little. Attempt 1 (note these are pared-down examples as there are a bunch of other non-relevant conditions)
SELECT *
FROM table1 LEFT JOIN table2 on table1.product LIKE "*" & table2.product
Attempt 2
SELECT *
FROM table1 LEFT JOIN table2 ON table1.product = table2.product
WHERE table1.product LIKE "*" & table2.product
Alternatively, I could add copies of the data to the reference table with the leading characters added, but this isn't really ideal.
Thank you in advance.