লজিস্টিক টিম ডেলিভারি-স্পিড মাপছে: পেমেন্ট সেটেল হওয়া থেকে পার্সেল হাতে পৌঁছাতে কত দিন লাগে। যেসব অর্ডারের একটা paid পেমেন্ট আছে এবং শিপমেন্ট delivered — তাদের order_id, method (পেমেন্টের) আর days_to_deliver (delivered_at থেকে paid_at বাদ দিয়ে পূর্ণ দিন, ভগ্নাংশ বাদ) বের করো; দিন নিচের ক্রমে, সমান হলে অর্ডার আইডি অনুযায়ী।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে order_id, method, days_to_deliver — দিন নিচের ক্রমে, টাই-এ order_id।
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)
3 card 1 1 bkash 2 6 cod 2 8 card 2 9 bkash 2
update shipments set delivered_at='2026-10-09' where order_id=1;
3 card 1 6 cod 2 8 card 2 9 bkash 2 1 bkash 7