ওয়্যারহাউসের স্ক্যানার মনিটর সিরিজের ভ্যারিয়েন্ট গুনছে — SKU নম্বরগুলো MON- দিয়ে শুরু হয়। product_variants থেকে সেই ভ্যারিয়েন্টগুলোর sku, price_cents ও stock বের করো; SKU অনুযায়ী সাজাও।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে sku, price_cents, stock — SKU অনুযায়ী সাজানো।
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)
MON-27-BLK 1850000 3 MON-32-BLK 2350000 2
insert into product_variants (id,product_id,sku,size,color,price_cents,stock) values (13,3,'MON-24-GRY','24in','gray',1650000,5);
MON-24-GRY 1650000 5 MON-27-BLK 1850000 3 MON-32-BLK 2350000 2