Skip to content
Advertisement

Daily User Retention for a month mySQL

I have log_event table and which has table as shown below:

db<>fiddle

I wanted Daily user retention(day-1) for Aug’18.

Day-1 retention: Users who registered on day-0 and then opened app on day-1.

For ex: In short users who registered on like 15th Aug 2018 and opened app on 16th Aug 2018

Advertisement

Answer

You can join all instances of a user opening the app onto registration dates, keeping the results when the date difference is one day:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement