SpinTheMic
Pro

Interview practice question

Conversion funnel

Data Engineering · SQL · Intermediate

Build a funnel showing how many users viewed a product, added to cart, and purchased, in that order, within a day.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Get the first time each user did each step.
  • Count users who reached each step after the previous one.
  • Use MIN with CASE per event type, grouped by user.
  • Enforce order with timestamp comparisons.
  • Divide step counts to get conversion rates.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics