BnsfData Engineer · Technical ScreenCodemia practiceCompute Terminal Dwell per Yard From Car Event Logs
Given a car_events table of (car_id, yard_id, event_type, event_ts) with ARRIVE and DEPART events, compute for each yard the number of completed visits, average dwell hours, and maximum dwell hours.
Medium
Data Manipulation (SQL/Python)