InterviewDB
Experience
·
San Francisco
Payment SQL: Analyze a Payments Table to Report Transaction Volumes, Failures, and Rolling Averages
Interview Experience
Problem You have a payments table: Query 1: Daily transaction volume and failure rate for the last 30 days. Query 2: 7-day rolling average of daily successful payment amounts. Follow-ups Currency conversion needed -- add an exchange-rate lookup table and normalize to USD. A spike in failure rate may indicate fraud. How would you write an alert query? Rewrite the rolling average in Python pandas. How do you handle timezone differences when grouping by day?
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 .