ShopSphere-এর লজিস্টিক টিম কুরিয়ার পার্টনারের জন্য কভারেজ ম্যাপ বানাচ্ছে। ভেন্ডররা যেসব শহর থেকে মাল পাঠায় আর কাস্টমাররা যেসব শহরে থাকে — দুই দিক মিলিয়ে একটাই ইউনিক শহরের তালিকা দরকার, নাহলে ম্যাপে একই শহর বারবার চলে আসে। vendors আর customers — দুই টেবিলের city এক করে বের করো; প্রতিটি শহর একবারই আসবে, নাম অনুযায়ী সাজাও।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে city — শহরের নাম অনুযায়ী সাজানো, কোনো শহর দুইবার নয়।
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 Dhaka Khulna Rajshahi Sylhet
insert into vendors (id,name,city,rating) values (7,'CraftCorner','Barisal',4.4);
Barisal Chattogram Dhaka Khulna Rajshahi Sylhet