Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

First Chime Feature After Signup

MediumSQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is First Chime Feature After Signup. Start with the requirements and the two tables on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

You are given user sign-up data and downstream product interaction events from Chime surfaces such as SpotMe, Pay Anyone, and Savings. Write a PostgreSQL query to return, for each signed-up user, the first feature they touched after sign-up. Only count events that occurred at or after the user's signup_at timestamp, and ignore events where the feature name is NULL. If a user has multiple qualifying events at the exact same timestamp, break ties by the smallest event_id. Include users who signed up but never touched a feature, showing NULL for the feature and event timestamp.

Schema

users
ColumnTypeDescription
user_idPKINTUnique user identifier
emailVARCHAR(255)User email address
signup_atTIMESTAMPTimestamp when the user signed up
acquisition_channelVARCHAR(50)Marketing or referral source for signup
feature_events
ColumnTypeDescription
event_idPKINTUnique event identifier
user_idINTUser who generated the event
feature_nameVARCHAR(100)Feature the user interacted with
surface_nameVARCHAR(100)App surface where the event occurred
event_atTIMESTAMPTimestamp of the feature event
Tablesusersfeature_events
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results