You're a product analyst at a fintech startup that opens digital accounts for small businesses. The acquisition team wants to know which signup channels bring in not just registrations but customers who pass identity verification. Build a report for each signup channel.
A customer has started the funnel if they have at least one application_submitted event with a non-NULL timestamp. Their start time is the earliest such timestamp. A customer counts as approved if they have at least one application_approved event at or after their start time, including an approval with the same timestamp as the submission. Ignore events where event_time is NULL. An approval before the first submission does not count. Multiple events for the same customer must not increase the counts.
Include every channel present in kyc_customers, even if no customers in that channel have started an application. Replace NULL values in signup_channel with the string value unknown.
Return these columns:
- channel — signup channel, text.
- total_customers — number of registered customers in the channel, integer.
- started_customers — number of customers who submitted an application, integer.
- approved_customers — number of customers who started an application and received approval at or after their start time, integer.
- conversion_rate_pct — percentage of approved customers among those who started, numeric, rounded to 2 decimal places. If no customers started, return 0.00.
Sort the result by channel in ascending order.
channeltotal_customersstarted_customersapproved_customersconversion_rate_pctShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in