Write SQL for top spender and non-spenders

Quick Overview

This question evaluates SQL querying skills including aggregation and grouping, date/time windowing for previous-calendar-month calculations, joins and handling absence of rows to identify top spenders and users with no transactions.

Write SQL for top spender and non-spenders

Company: Salesforce

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

Overview: This question evaluates SQL querying skills including aggregation and grouping, date/time windowing for previous-calendar-month calculations, joins and handling absence of rows to identify top spenders and users with no transactions.

|Home/Software Engineering Fundamentals/Salesforce
Salesforce logo
Salesforce
Jan 22, 2026
mediumSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
7
0
Loading...
Loading comments...