提交 0f8e426a authored 作者: 戚鸿镇's avatar 戚鸿镇

更新 扫码二次统计方案( 第二版).md

上级 aec806ca
...@@ -212,12 +212,12 @@ select count(*) as k,day, dealer_id,store_id, product_id from ydd_fw_scans group ...@@ -212,12 +212,12 @@ select count(*) as k,day, dealer_id,store_id, product_id from ydd_fw_scans group
+-------+----------+-----------+----------+------------+ +-------+----------+-----------+----------+------------+
``` ```
``` ```
select count(*) from (select day, product_id, dealer_id, count(distinct(member_id)) as user_num, count(if(is_first=1,1,0)) as first_scan_num from ydd_fw_scans where day = 20240212 group by day, product_id, dealer_id) as a; select count(*) from (select day, product_id, dealer_id, count(distinct(member_id)) as user_num, count(if(is_first=1,1,0)) as first_scan_num from ydd_fw_scans where day = 20240212 group by day, dealer_id, store_id, product_id) as a;
+----------+ +----------+
| count(*) | | count(*) |
+----------+ +----------+
| 201 | | 6869 |
+----------+ +----------+
``` ```
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论