ইনভেন্টরি টিম ১০টির কম স্টক থাকা প্রোডাক্ট দেখতে চায়। products থেকে নাম ও stock বের করো; কম স্টক আগে, একই স্টকে নাম অনুযায়ী সাজাও।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে name ও stock, স্টক ও নাম অনুযায়ী।
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)
Webcam 2 Wireless Mouse 3 27in Monitor 5 Clay Dinner Set 6 Denim Jacket 7 USB-C Hub 8 SQL Handbook 9
update products set stock=9 where id in (4,6);
Webcam 2 Wireless Mouse 3 27in Monitor 5 Clay Dinner Set 6 Denim Jacket 7 USB-C Hub 8 Clean Code 9 Cotton Panjabi 9 SQL Handbook 9