I am attempting to use multiple columns in my join like this:
FROM Table1 t
INNER JOIN Table2 s ON t.number = s.number OR t.letter = s.letter
Both of these tables have several hundred thousand rows of data and it is running infinitely.
Any ideas?
JOIN
ing on one column and if there isn't a match, toJOIN
on a different column, but your question says you want to use both columns in a single join condition. Which of the two are you trying to do? – Stefanstefanac