ফ্ল্যাশ-সেল ক্যাটালগ সস্তা-থেকে-দামি ক্রমে পৃষ্ঠায় সাজানো হয়, প্রতি পৃষ্ঠায় ৩টা প্রোডাক্ট। তোমার দরকার দ্বিতীয় পৃষ্ঠা — পুরো তালিকার ৪র্থ থেকে ৬ষ্ঠ প্রোডাক্ট। প্রতি সারিতে name, price_cents, stock দেখাও। সাজানোর নিয়ম: price_cents ঊর্ধ্বক্রমে (সস্তা আগে), একই দামে name অনুযায়ী — পৃষ্ঠার সীমানায় একই দামের জোড়া বসলেও ক্রম যেন অটুট থাকে।
কোনো ইনপুট নেই — একটি 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)
Leather Wallet 120000 25 Laptop Stand 150000 11 Clean Code 180000 30
update products set price_cents=120000 where id=4;
Clean Code 120000 30 Leather Wallet 120000 25 Laptop Stand 150000 11