qurey data

main
corizhang 2023-09-11 17:31:24 +08:00
parent 1361050142
commit 09f5eaba45
1 changed files with 7 additions and 0 deletions

7
查询.sql Normal file
View File

@ -0,0 +1,7 @@
SELECT b.M1_openId, a.openid as 'M2_openId', b.scan_time, a.first_sub_datatime as 'sub_datatime' FROM
(SELECT * FROM `2022_subscribe`
WHERE first_sub_datatime BETWEEN '2022-11-14' AND '2022-12-26') a
RIGHT JOIN
(SELECT * FROM `2022_mgm`
WHERE act_name = '世界杯-转介') b
on a.openid = b.M2_openId