InterviewDB Experience · USA

Order Logs - Parse and Aggregate Order Event Log into Summary Report

Interview Experience

Problem You receive a list of raw order log lines. Each line has format: Event types: CREATED, PAID, SHIPPED, DELIVERED, CANCELLED. Parse the logs and produce a summary: Example Follow-ups How do you handle log lines that arrive out of order by timestamp? What if order_id appears in CREATED for the same ID more than once (duplicate events)? Write a SQL version: given a table order_events(order_id, event_type, event_time), compute the same summary. Identify orders that took more than 2 hours from…

Full Details

🔒

Unlock all Affirm questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a affirm interview during the phone round.

It covers the following topics: Coding, Sql, Phone, Onsite .