PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches

Quick Overview

This question evaluates proficiency in SQL data manipulation, specifically aggregation, grouping, filtering, and identification of extrema within a single-table orders dataset.

  • Medium
  • OneMain Financial
  • Data Manipulation (SQL/Python)
  • Data Scientist

Count, Return, Find, and Select in SQL Queries

Company: OneMain Financial

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

orders +----------+--------------+------------+--------+ | order_id | customer_id | order_date | amount | +----------+--------------+------------+--------+ | 1 | 101 | 2024-01-05 | 250.00 | | 2 | 102 | 2024-01-07 | 125.50 | | 3 | 101 | 2024-01-10 | 80.00 | | 4 | 103 | 2024-01-11 | 300.00 | | 5 | 104 | 2024-01-15 | 150.00 | +----------+--------------+------------+--------+ ##### Scenario SQL screening – answer four basic queries on a single orders table ##### Question Count how many orders each customer has made. Return the total revenue generated per day. Find the customer(s) with the highest single order amount. Select all orders whose amount is above the overall average. ##### Hints GROUP BY, ORDER BY, HAVING and window functions might help.

Quick Answer: This question evaluates proficiency in SQL data manipulation, specifically aggregation, grouping, filtering, and identification of extrema within a single-table orders dataset.

Last updated: Mar 29, 2026

Related Coding Questions

  • Transform clickstream with pandas sessionization - OneMain Financial (Medium)
  • Write SQL for cohort retention and ARPU - OneMain Financial (Medium)

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.