ফুলফিলমেন্ট বোর্ডে প্রতি কার্যকর অর্ডারের (paid/shipped) ক্যারিয়ার দেখাতে হবে — কিন্তু শুধু যে অর্ডারের শিপমেন্ট delivered হয়েছে, সেটার ক্যারিয়ার; delivered হয়নি এমন অর্ডারের (শিপমেন্ট shipped/pending, বা শিপমেন্টই নেই) জায়গায় in_transit লেখা আসবে। কলাম: order_id, customer (নাম), carrier; অর্ডার আইডি অনুযায়ী সাজাও।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে order_id, customer, carrier — delivered হলে ক্যারিয়ার, নাহলে in_transit; অর্ডার আইডি অনুযায়ী।
Write your solution, test it against custom input, then submit for a real verdict.
Your submissions, verdicts, drafts and contest score are tied to your account. Registration is free.
ShopSphere fixture. Standard SQL (SQLite-compatible engine).
SQL samples run against the ShopSphere fixture. When a sample shows dataset setup, the judge applies it before running your query; the expected rows are TSV.
Base ShopSphere fixture (no changes)
1 Rahim Sundarban 3 Nusrat Pathao 4 Rahim in_transit 6 Rahim Pathao 7 Mim in_transit 8 Karim Pathao 9 Nusrat Sundarban 10 Tanvir in_transit
update shipments set status='delivered', delivered_at='2026-11-09' where order_id=10;
1 Rahim Sundarban 3 Nusrat Pathao 4 Rahim in_transit 6 Rahim Pathao 7 Mim in_transit 8 Karim Pathao 9 Nusrat Sundarban 10 Tanvir Pathao