Calculate the month-over-month retention rate of users who interacted with an SMS message on Attentive.
Treat clicked and replied records in sms_interactions as qualifying interactions, and exclude delivered or NULL interaction types. Use users to include only recognized users. Exclude the latest interaction month because a subsequent month is not yet observable.
interaction_month, users_interacted, retained_next_month, and retention_rate.retention_rate is the percentage of users who interacted again in the immediately following calendar month, rounded to two decimals.interaction_month ascending.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Attentive user identifier |
| full_name | VARCHAR(100) | User display name |
| Column | Type | Description |
|---|---|---|
| interaction_idPK | INT | Unique SMS interaction identifier |
| user_id | INT | User associated with the interaction |
| message_id | VARCHAR(50) | Attentive SMS message identifier |
| interacted_at | TIMESTAMP | Timestamp of the SMS event |
| interaction_type | VARCHAR(20) | Event type, such as clicked, replied, or delivered |