মার্কেটিং টিম 'মিড-রেঞ্জ কালেকশন' ফ্ল্যাশ-সেল বানাচ্ছে — দামের সীমা ১,০০,০০০ থেকে ৪,০০,০০০ সেন্ট, দুই দিকই অন্তর্ভুক্ত। products থেকে সেই ব্যান্ডের প্রোডাক্টের name, price_cents ও stock বের করো; দাম ঊর্ধ্বক্রমে, একই দামে নাম অনুযায়ী।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে name, price_cents, stock — দাম ঊর্ধ্বক্রম, একই দামে name অনুযায়ী।
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)
Table Lamp 110000 18 Leather Wallet 120000 25 Laptop Stand 150000 11 Clean Code 180000 30 Dune 210000 12 USB-C Hub 220000 8 Cotton Panjabi 240000 14 Clay Dinner Set 320000 6 Webcam 350000 2 Denim Jacket 380000 7
update products set price_cents=400000 where id=3;
Table Lamp 110000 18 Leather Wallet 120000 25 Laptop Stand 150000 11 Clean Code 180000 30 Dune 210000 12 USB-C Hub 220000 8 Cotton Panjabi 240000 14 Clay Dinner Set 320000 6 Webcam 350000 2 Denim Jacket 380000 7 27in Monitor 400000 5