PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates SQL data manipulation competencies such as aggregation, joins, time-based filtering, and ranking to compute recent user spending; it falls under the Data Manipulation (SQL/Python) domain and targets practical application.

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

Identify Top-3 Users by Recent Total Spend

Company: Atlassian

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

Users +----+-------+-------------+ | id | name | joined_date | +----+-------+-------------+ | 1 | Alice | 2023-01-02 | | 2 | Bob | 2023-02-14 | | 3 | Carol | 2023-02-20 | +----+-------+-------------+ ​ Orders +-----+---------+------------+--------+ | id | user_id | order_date | amount | +-----+---------+------------+--------+ | 101 | 1 | 2023-03-01 | 120.0 | | 102 | 2 | 2023-03-02 | 80.0 | | 103 | 1 | 2023-03-05 | 240.0 | +-----+---------+------------+--------+ ##### Scenario SQL technical screen assessing medium-difficulty query skills on e-commerce data. ##### Question Write a SQL query that returns the top-3 users by total spend in the last 30 days, including user_id, user_name, and total_amount. ##### Hints Use window functions or ORDER BY/LIMIT; remember date filtering.

Quick Answer: This question evaluates SQL data manipulation competencies such as aggregation, joins, time-based filtering, and ranking to compute recent user spending; it falls under the Data Manipulation (SQL/Python) domain and targets practical application.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 8,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

  • Label game performance by margin - Atlassian (Medium)
  • Rank each team’s top 3 scores in 2024 - Atlassian (Medium)
  • Find 2023 NCAA championship winner - Atlassian (Medium)