If you run below code you should see the results all from table 1 and data from table 2 where it matches, otherwise null will be returned from table 2 where there is no match
select t1.shift, t2.shift
from table1 t1 left join table2 t2 on t1.shift = t2.shift