Recent Signups
Which users signed up on or after February 1, 2024?
- Filtering
- Sorting
Challenge brief
Understand the request
Onboarding Team is reviewing the February 2024 new user cohort for a welcome-email campaign.
Return user_id, country, device_type, signup_date in the declared deterministic order.
Return
- user_id
- country
- device_type
- signup_date
Constraints
- Include signups on or after 2024-02-01
- Order by user ID
Data you will use
Review the relevant tables before deciding how to join, filter, or aggregate them.
users
user_idINTEGERcountryVARCHAR(50)device_typeVARCHAR(20)signup_dateDATE
Hints, when you need them
Open one clue at a time so you still do the reasoning.
Hint 1
Signup date is a user attribute.
Hint 2
Keep the boundary date in the qualifying range.
Hint 3
Project explicit user columns and order by identifier.
Verified SQL answer
Attempt the problem first, then compare structure and reasoning—not just syntax.
Reveal solution and explanation
SELECT user_id, country, device_type, signup_date FROM users WHERE signup_date >= '2024-02-01' ORDER BY user_idWhy this works
ISO date strings (YYYY-MM-DD) compare correctly as text in SQLite. signup_date >= '2024-02-01' returns 4 users who signed up in February — users 20, 21, 22, 23.
Success check
Returns the complete deterministic result for recent signups
Expected result
Use this output to verify values, aliases, ordering, and row count.
| user_id | country | device_type | signup_date |
|---|---|---|---|
| 20 | Canada | mobile | 2024-02-01 |
| 21 | Spain | desktop | 2024-02-05 |
| 22 | Italy | mobile | 2024-02-08 |
| 23 | Mexico | tablet | 2024-02-10 |
| 24 | USA | mobile | 2024-02-12 |
Learn the concepts behind this answer
Strengthen your understanding with these targeted learning topics:
Continue practicing
Explore related company challenges
Meta
Independent Meta-style social-product, engagement, content, community, messaging, and advertising SQL practice.
Microsoft
Independent Microsoft-style cloud, productivity, subscription, usage, support, and customer analytics SQL practice.
Netflix
Independent Netflix-style streaming, subscription, catalog, ratings, and engagement SQL practice.
Return to the complete interview preparation experience.