--------------补全数据-------------------
update b set b.客户报告编号=a.客户报告编号 from FirstTable a inner join FinalTable b
on b.CrediteyesNO=a.CrediteyesNO where a.客户报告编号 is not null and b.客户报告编号 is null
update b set b.运营地址=a.运营地址 from FirstTable a inner join FinalTable b
on b.CrediteyesNO=a.CrediteyesNO where a.运营地址 is not null and b.运营地址 is null
update b set b.主营业务=a.主营业务 from FirstTable a inner join FinalTable b
on b.CrediteyesNO=a.CrediteyesNO where a.主营业务 is not null and b.主营业务 is null
update b set b.建筑面积=a.建筑面积 from FirstTable a inner join FinalTable b
on b.CrediteyesNO=a.CrediteyesNO where a.建筑面积 is not null and b.建筑面积 is null
--------------显示数据条数>>>>>>>>>>>>>>>>>>>>>
select distinct CrediteyesNO into #No from 国内订单表 where
select CrediteyesNO into OtherNO from #No where #No.CrediteyesNO not in (Select CrediteyesNO from #temp1)