মার্কেটপ্লেস-বিস্তার টিম জানতে চায় কোন কোন শহরে আমাদের দুই দিকই আছে — অন্তত একজন ভেন্ডর এবং অন্তত একজন কাস্টমার। vendors আর customers — দুই টেবিলেই যেসব city আছে, প্রতি শহরে vendors (ভেন্ডর সংখ্যা) ও customers (কাস্টমার সংখ্যা) বের করো; শহর অনুযায়ী সাজাও। যে শহরে শুধু এক দিক আছে, সে তালিকায় আসবে না।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে city, vendors, customers — শহর অনুযায়ী।
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)
Chattogram 1 1 Dhaka 2 3 Khulna 1 1 Sylhet 1 1
insert into customers (id,name,city,signup_date) values (7,'Salma','Rajshahi','2026-05-01');
Chattogram 1 1 Dhaka 2 3 Khulna 1 1 Rajshahi 1 1 Sylhet 1 1