[sql] How to do an INNER JOIN on multiple columns