User Activation Rate
TikTok ☯️ Medium SQL
Beginner Mode

Objective

Write a SQL query to calculate the activation rate of users who signed up.

Table Schema:

  • emails
Column Type Description
email_id INTEGER Unique identifier for each email
user_id INTEGER ID of the user
signup_action VARCHAR Action type (e.g., 'Signup')
  • texts
Column Type Description
text_id INTEGER Unique identifier for each text
user_id INTEGER ID of the user
signup_action VARCHAR Confirmation status (e.g., 'Confirmed', 'Not Confirmed')

Task Requirements:

  • Determine the total number of users who signed up via the emails table
  • Identify users who confirmed their signup via the texts table
  • Calculate the activation rate as a percentage
  • Round the result to 2 decimal places

Output columns: activation_rate

Examples

Example 1:

Input:

emails
email_idsignup_actionuser_id
1Signup1
2Signup2
3Signup3
4Signup4
5Signup5
6Signup6
7Signup7
texts
signup_actiontext_iduser_id
Confirmed12
Confirmed24
Confirmed36

Output:
activation_rate
42.86
Quick Solution

Code Environment

Sign in or try as guest to run your code.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →