PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches

Quick Overview

This question evaluates proficiency in SQL-based data manipulation and temporal reasoning, specifically the ability to correlate membership periods with transaction records using relational operations.

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

List Transactions During Active 'Gold' Membership Period

Company: Robinhood

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

customer_profile +-------------+----------------+--------------------+-------------------+ | customer_id | membership_type| membership_start_date| membership_end_date| +-------------+----------------+--------------------+-------------------+ | 101 | Gold | 2023-01-01 | 2023-12-31 | | 102 | Silver | 2023-02-15 | 2023-08-15 | | 103 | Gold | 2023-03-01 | 2023-09-01 | +-------------+----------------+--------------------+-------------------+ ​ transactions +---------------+-------------+-----------------+--------+ | transaction_id| customer_id | transaction_date| amount | +---------------+-------------+-----------------+--------+ | 1001 | 101 | 2023-03-10 | 120.00 | | 1002 | 102 | 2023-09-01 | 50.00 | | 1003 | 103 | 2023-05-05 | 300.00 | +---------------+-------------+-----------------+--------+ ##### Scenario Fintech platform wants to list every transaction that occurred while a customer’s specific membership tier was active. ##### Question Given tables customer_profile (customer_id, membership_type, membership_start_date, membership_end_date) and transactions (transaction_id, customer_id, transaction_date, amount), write a SQL query that returns all transactions that happened during the customer’s active 'Gold' membership period. ##### Hints Join on customer_id, filter membership_type, date between start and end (inclusive).

Quick Answer: This question evaluates proficiency in SQL-based data manipulation and temporal reasoning, specifically the ability to correlate membership periods with transaction records using relational operations.

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

  • Write SQL to localize trading drop contributors - Robinhood (Medium)
  • Write SQL and Python for transaction analytics - Robinhood (Medium)
  • Identify Transactions During 'Golden' Membership Period - Robinhood (Medium)
  • Identify Top Users with Declined Transactions in SQL - Robinhood (Medium)
  • Create OHLC Aggregates from Tick Data in Python - Robinhood (Medium)