select a.aname,b.bname
from a full join b on a.aid=b.aid and b.bid=2