例)テーブルBの品番が「999」のときは「333」に置き換えて結合、それ以外はそのまま結合
select * from テーブルA as a
left join テーブルB as b
on a.品番 = (case when b.品番 = '999' then '333' else b.品番 end)
where a.xxx = xxx
select * from テーブルA as a
left join テーブルB as b
on a.品番 = (case when b.品番 = '999' then '333' else b.品番 end)
where a.xxx = xxx