22,181
社区成员




select m.*,
(m.金额 - n.金额) / m.金额 金额的增长率
from tb1 m , tb2 n
where m.年月 = n.年月 and m.企业类型1 = n.企业类型1 and m.地区类型2 = n.地区类型2 and m.类型3 = n.类型3
select m.*,
(m.金额 - isnull(n.金额,0)) / m.金额 金额的增长率
from tb1 m left join tb2 n
on m.年月 = n.年月 and m.企业类型1 = n.企业类型1 and m.地区类型2 = n.地区类型2 and m.类型3 = n.类型3