Could use
select distinct m.cola,m.colb from maintable m
inner join othertable x on x.key = m.key
or
select m.cola,m.colb from maintable m
inner join (select distinct key from othertable) x on x.key = m.key
Far away is close at hand in the images of elsewhere.
Anon.