这是SQL语句select 为选择
where为条件
group by为按bcode分组
sum的部分是将不同的sendreport分别进行统计
T代表的是总数记录结果可能如下
code S F E W T
100 2 4 2 6 14
102 4 3 2 4 13
.....
where为条件
group by为按bcode分组
sum的部分是将不同的sendreport分别进行统计
T代表的是总数记录结果可能如下
code S F E W T
100 2 4 2 6 14
102 4 3 2 4 13
.....
sendreport=?
'1'=?
'0'=?
什么呀!
这里表示判断,如果sendreport= 'E',则返回1,否则返回0