ঢাকার ওয়্যারহাউস ম্যানেজার জানতে চায় ঢাকার ভেন্ডরদের ক্যাটালগে কী কী প্রোডাক্ট আছে। products থেকে এমন প্রোডাক্টের name ও price_cents বের করো যাদের ভেন্ডর ঢাকায় — ভেন্ডরের তালিকা একটি IN subquery দিয়ে আনবে; দাম নিচের ক্রমে, একই দামে নাম অনুযায়ী।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে name, price_cents — দাম নিচের ক্রমে, সমান হলে 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)
27in Monitor 1850000 Mechanical Keyboard 450000 Denim Jacket 380000 Webcam 350000 Cotton Panjabi 240000 USB-C Hub 220000 Leather Wallet 120000
update vendors set city='Dhaka' where id=2;
27in Monitor 1850000 Mechanical Keyboard 450000 Denim Jacket 380000 Webcam 350000 Cotton Panjabi 240000 USB-C Hub 220000 Dune 210000 Clean Code 180000 Leather Wallet 120000 SQL Handbook 95000