I need to join a table and usually use LEFT JOIN but in this particular case I nee to be able to join table based on several parameters. Here's what I've tried:
SELECT * FROM t1
LEFT JOIN t2 ON (t1.1= t2.A
t1.2= t2.B AND
t1.3= t2.C)
Can I do that?
The reason I have to do that way because I'm trying to extract a value from t2 when a record in t2 matches 3 records in t1.
For example: I need to get home phone number from t2, which is not in t1. In order to do that I need to match First, Last names and home address.
Individually I can have other users with the same name (first or last) in t2. At the same time I can have other names at the same address...