PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates proficiency with SQL data aggregation, grouping, and ordering to compute borrower-level loan totals, assessing practical skills in relational data manipulation within the Data Manipulation (SQL/Python) domain.

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

Query Active Loans by Borrower ID in SQL

Company: LendingClub

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

loans +---------+------------+----------+-----------+---------------+ | loan_id | borrower_id| amount | status | payment_date | +---------+------------+----------+-----------+---------------+ | 1001 | 501 | 5000.00 | ACTIVE | 2024-01-15 | | 1002 | 502 | 7000.00 | DEFAULTED | 2023-12-20 | | 1003 | 501 | 3000.00 | ACTIVE | 2024-02-10 | | 1004 | 503 | 4500.00 | CLOSED | 2023-11-01 | | 1005 | 504 | 6500.00 | ACTIVE | 2024-03-05 | +---------+------------+----------+-----------+---------------+ ##### Scenario Live CodeShare SQL task for a LendingClub risk-analytics position; candidate must query loan data that feeds credit-decision systems. ##### Question Using the loans table below, write a SQL query that returns each borrower_id and the total amount of all loans whose status is 'ACTIVE', ordered by borrower_id ascending. ##### Hints Filter by status, GROUP BY borrower_id, SUM amount, ORDER BY borrower_id.

Quick Answer: This question evaluates proficiency with SQL data aggregation, grouping, and ordering to compute borrower-level loan totals, assessing practical skills in relational data manipulation within the Data Manipulation (SQL/Python) domain.

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.