select a.*,(case when a.col='满足一个条件' then (select col from b where b.id=a.id) else (select col from c where c.id=a.id) End) form a