MS SQl显示空白结果

时间:2018-10-29 07:41:54

标签: sql-server

如果下面的合作伙伴代码具有资产代码,则下面的查询是匹配的,但如果没有匹配项,则不显示该代码。

即使partner_code没有资产代码来显示任何结果为null或0,我也需要

select Asset_code, partner_code from Asset
where PARTNER_CODE in  ('28800330',
'28800332',
'28800014',
'41900139',
'28800210',
'29200298',
'29200149',
'29200259',
'29200086',
'29400280',
'29000314',
'29000224',
'29600306',
'29100045',
'29800530',
'29800543',
'29900474',
'29700298',
'27400112',
'27400648',
'27400668',
'85400058',
'27300472',
'53200002',
'27800221',
'27800039',
'27200013')

0 个答案:

没有答案