বাজেট-শোকেস পেজে দরকার দ্বিতীয় দামের ধাপ: সর্বোচ্চ দাম বাদ দিলে যে দামটা সবচেয়ে বড় থাকে, সেটাই second tier। products থেকে ঠিক সেই দামের সব প্রোডাক্টের name ও price_cents বের করো; নাম অনুযায়ী সাজাও। সেই দামে একাধিক প্রোডাক্ট থাকলে সবগুলোই আসবে।
কোনো ইনপুট নেই — একটি SQL query লেখো।
প্রতি লাইনে name, price_cents — নাম অনুযায়ী; সবার দাম একই (second tier)।
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)
Mechanical Keyboard 450000
update products set price_cents=450000 where id=12;
Mechanical Keyboard 450000 Webcam 450000