PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches

Quick Overview

This question evaluates data manipulation and analytics skills in SQL/Python, focusing on aggregation, event-time calculations, and identifying cross-region transaction behavior to compute adoption and transaction rates.

  • Medium
  • Coinbase
  • Data Manipulation (SQL/Python)
  • Data Scientist

Calculate Adoption and Transaction Rates, Identify Cross-Region Sales

Company: Coinbase

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

user_txn +---------+-------------+------------+---------------+------------------+---------------------+ | user_id | user_region | adopted_at | transacted_at | transacted_region | timestamp | +---------+-------------+------------+---------------+------------------+---------------------+ | 101 | US | 2023-01-05 | 2023-01-10 | US | 2023-01-10 09:00 | | 101 | US | 2023-01-05 | 2023-02-01 | CA | 2023-02-01 12:30 | | 202 | CA | 2023-01-07 | 2023-01-20 | CA | 2023-01-20 14:00 | | 303 | UK | 2023-01-08 | NULL | NULL | NULL | | 404 | US | 2023-01-09 | 2023-03-01 | UK | 2023-03-01 16:45 | +---------+-------------+------------+---------------+------------------+---------------------+ ##### Scenario A user_txn table records user adoption dates and subsequent transactions across regions; the business wants adoption/transaction KPIs and insights on cross-region behavior. ##### Question Compute overall adoption_rate (users with adopted_at) and transaction_rate (users with at least one transaction) for a given date range. For each adopted user, calculate the time in days from adoption to their first transaction. Identify cross-region sales: transactions where transacted_region differs from the region of the user’s first transaction, and list those transactions. ##### Hints Use conditional aggregation for rates, MIN() OVER or subqueries for first transaction, and compare regions in a CTE.

Quick Answer: This question evaluates data manipulation and analytics skills in SQL/Python, focusing on aggregation, event-time calculations, and identifying cross-region transaction behavior to compute adoption and transaction rates.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Compute adoption, latency, and cross-region transactions - Coinbase (Medium)
  • Write SQL: sum values ≤ each row’s value - Coinbase (Medium)
  • Write SQL and Python for funnels/retention - Coinbase (Medium)
  • Implement filters and cursor pagination - Coinbase (Medium)
  • Compute delivery metrics and top-K queries - Coinbase (Medium)