子查询,左连接,输出值变更

select * from Fund obj,(select bc.objid objid,
case when bc.cardbusitype=1 then 'CorpFund' when bc.cardbusitype=2 then 'CorpFund' when bc.cardbusitype=3 then 'MemberFund' else '' end cardbusitype
from BankCardBusiInfo bc left join bankcard b on bc.bankcardid = b.bankcardid
where b.ifUse=1 and b.cardNo = '9999990000000000010954')
ft where obj.objid = ft.objid and obj.discriminate = ft.cardbusitype;

你可能感兴趣的:(左连接)