রেফারেল প্রোগ্রাম অডিট চলছে: customers থেকে যেসব কাস্টমার কখনো কাউকে refer করেনি — অর্থাৎ referrals-এ কোনো সারির referred_by-তে তাদের আইডি নেই — তাদের name ও city বের করো; নাম অনুযায়ী সাজাও। সাবধান: referrals-এ এমন সারিও আছে যার referred_by NULL — নিজের সমাধান যাচাই করার সময় সেটার কথা মাথায় রেখো।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে name, 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)
Mim Khulna Nusrat Dhaka Sajid Sylhet Tanvir Dhaka
update referrals set referred_by=3 where customer_id=6;
Mim Khulna Sajid Sylhet Tanvir Dhaka