সাপোর্ট টিম প্রতিটি paid/shipped অর্ডারের রসিদ চায়: অর্ডার আইডি, কাস্টমারের নাম, মোট টাকা (সেন্টে)। অর্ডার আইডি অনুযায়ী সাজাও।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে order_id, customer, total_cents, অর্ডার আইডি অনুযায়ী।
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 890000 3 Nusrat 600000 4 Rahim 2000000 6 Rahim 605000 7 Mim 670000 8 Karim 180000 9 Nusrat 120000 10 Tanvir 380000
update orders set status='cancelled' where id in (3,6);
1 Rahim 890000 4 Rahim 2000000 7 Mim 670000 8 Karim 180000 9 Nusrat 120000 10 Tanvir 380000