I'm trying to do a left join on two fields which don't have the same amount of characters.
I'm using the following:
When doing this I'm getting JOIN expression not supported.
I really need to take all records on TABLE1 and only the records in TABLE2 taking the first 9 characters to make this join.
Can you help me?
I'm using the following:
Code:
SELECT TABLE1.BKGNBR, TABLE2.DOCNBR FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.BKGNBR = LEFT(TABLE2.DOCNBR,9);
I really need to take all records on TABLE1 and only the records in TABLE2 taking the first 9 characters to make this join.
Can you help me?
Comment