其他
开源SPL提速银行POS机交易报表30+倍
看看问题
解决步骤
SELECT C_M,
SUM(CASE
WHEN C_FLAG = '0' AND C1_FLG != '1' THEN
1
ELSE
0
END) AS CNT1,
SUM(CASE
WHEN CR_FLAG = '1' AND C1_FLG != '1' THEN
1
ELSE
0
END) AS CNT2,
…
SUM(AMT) AS AMT
FROM SHOP_DETAIL
WHERE
T_CODE not in ('03')
AND DAY_ID >= ?
AND DAY_ID <= ?
AND C_M in (SELECT C_CODE
FROM ORG_LEVEL
WHERE C_M_B = ?
AND CTYPE = '6')
GROUP BY C_M
效果如何
后记
性能优化课程
重磅!开源SPL交流群成立了
简单好用的SPL开源啦!
为了给感兴趣的小伙伴们提供一个相互交流的平台,
特地开通了交流群(群完全免费,不广告不卖课)
需要进群的朋友,可长按扫描下方二维码
本文感兴趣的朋友,请转到阅读原文去收藏 ^_^