0 day streak
Anonymous · shared experience1 Oct 2025 · 5 views

Publicis Sapient: Big spenders in a given month, at scale

Interview question #Publicis Sapient SDE 2 Other

Problem. Write a SQL query that returns users whose purchases in a chosen month of the previous year add up to more than 10,000.

Follow-ups in the same section.

  • Write the equivalent with JPA queries.
  • How would you paginate the result, and which pagination strategy holds up on large tables?
  • The table has millions of rows: how do you keep the query and the API fast?
  • Later in the interview: how do you read a very large data set into the service without running out of memory?

Context. Part of a 30 minute database section inside a single long backend interview for a mid-level Java role. The candidate was selected.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.