ইনভেন্টরি টিম কার্ট আর অর্ডারের অসঙ্গতি খুঁজছে — কোন প্রোডাক্ট কাস্টমারের কার্টে ঢুকেছে কিন্তু কখনো অর্ডার হয়নি (cart_only), আর কোনটা অর্ডার হয়েছে কিন্তু কখনো কার্টে ছিল না (ordered_only)। দুই দিকের তালিকা একসাথে জোড়ো — প্রতি লাইনে product ও দিকের লেবেল listed; নাম অনুযায়ী সাজাও, একই নামে লেবেল অনুযায়ী।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে product, listed (cart_only বা ordered_only) — product অনুযায়ী, একই নামে listed অনুযায়ী।
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 ordered_only Dune cart_only Webcam cart_only
insert into order_items (id,order_id,product_id,quantity,unit_price_cents) values (16,10,12,1,350000);
27in Monitor ordered_only Dune cart_only