标签:
select
case
when t1.ACCURATE_START_DATE = CALC_MONTH then
1
else
0
end, --入渠人数
case
when t1.ACCURATE_START_DATE = CALC_MONTH and t1.NEW_ENTER_FLAG = 0 then
1
when t1.newenterflag2 = 2 then
1
else
0
end --转渠人数
from t1
标签:
原文地址:http://www.cnblogs.com/zhangwensi/p/4746522.html