📖 Story
Zomato · Order Reliability
Thursday morning at Zomato's Restaurant Quality team. Leadership wants a list of restaurant partners who have a spotless order-fulfillment record — every single order they've ever received actually got delivered, none cancelled. The orders table only has a row for an order that actually happened, so a restaurant that's brand new and hasn't received any orders yet simply has no rows in it at all — that's not missing data, it's a restaurant that's never had the chance to disappoint anyone. One order is also still sitting with a NULL status because the delivery hasn't been marked complete or cancelled yet; it shouldn't count against a restaurant either way until it resolves.