InterviewDB Experience

Invoice SQL: Query an Invoicing System to Report Overdue Invoices and Outstanding Balances

Interview Experience

Problem You have these tables: Query 1: List all overdue invoices (due date passed, not paid) with client name, amount, and days overdue. Query 2: For each country, return total outstanding balance and number of overdue invoices. Follow-ups A client partially pays an invoice (payments table). Rewrite Query 1 to show remaining balance. Add a 30/60/90-day aging bucket column to Query 1. How would you set up a scheduled job to email overdue invoice reports? Write the equivalent of Query 1 in Python…

Full Details

🔒

Unlock all Square/Block questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a candidate experience report from a square/block interview.

It covers the following topics: Data Scientist, Sql .