Home > database > SQL problem could you tell me how to query a time period there were many events
SQL problem could you tell me how to query a time period there were many events
Time:12-04
A person (open_id) bought a member has a start date (the start_date) and (end_date) every day during the call active member now every day I want to find an active member of the how should find
Finally want to form table
CodePudding user response:
select Time='2020-9-16' , effective membership=count (open_id) From A Where the start_date & gt; And end_date='2020-9-16' & lt;