Search ⌘K
Wayfair
Wayfair

Analytics Reporting Track · Medium · 25 min

Carrier Late Shipment Rate

Operations wants to compare carrier reliability for June 2024 shipments. Return each carrier_name, total_shipments, and the late_shipment_pct rounded to two ...

Analytics Reporting Track
Medium
25 min
query basics
aggregation
date functions

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice query basics through a Wayfair-tagged business scenario.

Approach

Use this track to train on SQL that mirrors day-to-day analytics workflows and recurring reporting asks.

Company context

Company labels are directional practice context, not official interview guidance.

Prereq: query basics
Prereq: filtering

Operations wants to compare carrier reliability for June 2024 shipments. Return each carrier_name, total_shipments, and the late_shipment_pct rounded to two decimals, where a shipment is late if delivered_date is after promised_date. Sort by carrier_name.

shipments
shipment_id INT
carrier_name VARCHAR(30
shipment_idcarrier_name
1BlueLine2024-06-032024-06-03
2BlueLine2024-06-052024-06-07
3ParcelPro2024-06-062024-06-06
4ParcelPro2024-06-092024-06-12
5ParcelPro2024-06-102024-06-11
6SwiftFreight2024-06-122024-06-12
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.