Hello im try to match two tables were invoice matches and vendor does not match my code :
SELECT DISTINCT Bb.ID, Bb.Vendor, Bb.Invoice, Bb.Amount, Bb.Code, QB.ID, QB.Date, QB.Invoice, QB.Vendor, QB.Amount, QB.Memo
FROM Bb INNER JOIN QB ON (Bb.Vendor<> QB.Vendor) AND (Bb.Invoice = QB.Invoice);
works but i want to add another check that makes the first 2 letters of vendor from each table match
SELECT DISTINCT Bb.ID, Bb.Vendor, Bb.Invoice, Bb.Amount, Bb.Code, QB.ID, QB.Date, QB.Invoice, QB.Vendor, QB.Amount, QB.Memo
FROM Bb INNER JOIN QB ON (Bb.Vendor<> QB.Vendor) AND (Bb.Invoice = QB.Invoice);
works but i want to add another check that makes the first 2 letters of vendor from each table match