I have data like this below
First-month transaction
User_id trsaction_completed_date user_type
1234 7-Jan-19 New
5657 8-Jan-19 New
7890 9-Jan-19 New
98456 20-Jan-19 new
Second-month transaction
User_id trsaction_completed_date user_type
1234 4-Feb-19 Existing
5657 5-Feb-19 Existing
567567 2/13/2019 New
Need to find repeated users for the current month from previous month data. The current month is Feb as per my data and Previous month is Jan.
As per my data, I need to get below output
User id 1234,5657 are transacted in Jan as well as Feb
Output:
-----------
Month count
Feb 2