হোমপেজে 'টপ ভেন্ডর' কার্ড বসানো হবে। কার্যকর অর্ডারের (paid/shipped) সব order_items মিলিয়ে প্রতি ভেন্ডরের প্রোডাক্ট মোট কত ইউনিট বিক্রি হয়েছে গুনো (units_sold, quantity-র যোগফল) — তারপর প্রথম পৃষ্ঠার ৩ জন দেখাও: বেশি বিক্রি আগে, সমান হলে ভেন্ডরের নাম অনুযায়ী। কলাম: vendor, units_sold।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে vendor, units_sold — বিক্রি নিচের ক্রমে, টাই-এ vendor; সর্বোচ্চ ৩ সারি।
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)
StyleHub 5 TechNest 5 BookBazar 4
update orders set status='cancelled' where id=6;
StyleHub 5 TechNest 5 HomeCraft 2