সাপোর্ট টিম 'প্রিমিয়াম লাইন' চালু করবে — যে কাস্টমারের গড় অর্ডারের দাম বেশি, সে আগে সামলানো হবে। শুধু কার্যকর অর্ডার (paid/shipped) ধরে প্রতি কাস্টমারের অর্ডার সংখ্যা (orders), মোট খরচ (total_cents) আর গড় অর্ডারের দাম (avg_order_cents, পূর্ণসংখ্যায় round) বের করো; গড় বেশি থেকে কম, সমান হলে নাম অনুযায়ী।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে customer, orders, total_cents, avg_order_cents — গড় নিচের ক্রমে, সমান হলে customer অনুযায়ী।
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)
Rahim 3 3495000 1165000 Mim 1 670000 670000 Tanvir 1 380000 380000 Nusrat 2 720000 360000 Karim 1 180000 180000
insert into orders (id,customer_id,ordered_at,status) values (11,3,'2026-11-06','paid'); insert into order_items (id,order_id,product_id,quantity,unit_price_cents) values (16,11,5,1,95000);
Rahim 3 3495000 1165000 Mim 1 670000 670000 Tanvir 1 380000 380000 Nusrat 3 815000 271667 Karim 1 180000 180000