အားလုံးပဲ မင်္ဂလာပါ။ ဒီနေ့ Day 2 အတွက်ကတော့ Leetcode ရဲ့ easy problem တစ်ပုဒ်ဖြစ်တဲ့ 595. Big Countries ဆိုတဲ့ problem ကို ရွေးချယ်ထားပါတယ်။ ဒီပုစ္ဆာ အတွက်ကတော့ World ဆို တဲ့ table တစ်ခုပဲ ပေးထားပြီး area က အနိမ့်ဆုံး 3 million ရှိတဲ့ countries တွေ ဒါမှမဟုတ် population က အနိမ့်ဆုံး 25 millions ရှိတဲ့ countries တွေကိုရှာပေးရမှာပဲဖြစ်ပါတယ်။ Table တစ်ခုထဲမှာပဲ condition ထည့်ပေးရမှာဆိုတော့ SQL လေးကို အောက်က အတိုင်း ရေးလိုက်ပါတယ်။
1SELECT name , population, area FROM World w WHERE w.area >= 3000000 OR
2w.population >= 25000000;သူလိုချင်တဲ့ အတိုင်း name နဲ့ population ကို SELECT လုပ်ပြီး area က အနိမ့်ဆုံးဆိုတာပါတဲ့ အတွက် 3 millions or above ဖြစ်ပေးရမှာမို့ greater than or equal ဖြစ်ရမှာဖြစ်ပြီး population အတွက်လည်း 25 millions or above မို့ same condition ရေး လိုက်တာပဲဖြစ်ပါတယ်။ Day 2 အတွက်ကတော့ အဆင်ပြေသွားပြီပဲဖြစ်ပါတယ်။ Video အနေနဲ့ ကြည့်ချင်ရင်တော့ အောက်က YouTube link လေးမှာသွားရောက်ကြည့်ရှု့လို့ရပါတယ်။ နောက်ရက်တွေမှာပြန်တွေ့ကြပါမယ်ဗျာ။
30 Days Of LeetCode Database (Day-2)
Watch on YouTubeDiscussion
Join the conversation
How do you feel about this article?
Comments
Sign in to join the conversation
Sign in to be the first to comment!
Share Your Article
Share with your professional network
Recent Articles

Day 2 - GitHub Actions ရဲ့ အဓိက Concepts များနှင့် Runner အကြောင်း
ပြီးခဲ့တဲ့အပတ် Day 1 တုန်းက ကျွန်တော်တို့ CI/CD ရဲ့ Concept တွေကို အကြမ်းဖျင်း ပြောခဲ့ကြပြီးပြီနော်။ ဒီနေရာမှာ လက်တွေ့မစ...
Day 1 - Software Development ကို ပိုပြီးမြန်စေမယ့် CI/CD
Software တစ်ခုရေးပြီးပြီဆိုရင် "ငါ့စက်ထဲမှာတော့ အလုပ်လုပ်တယ်" ဆိုရုံနဲ့ မပြီးသေးပါဘူး။ User တွေသုံးမယ့် Server ပေါ်ရောက်...

Secure AWS ECR Github Action Using OIDC
Modern DevOps နှင့် Cloud Security တို့မှာ အဓိကဖြစ်လာသည့် Authentication System ယနေ့ခေတ် DevOps, Cloud Engineering, CI/C...

Manual vs Automated Infrastructure: Why "useradd" Still Matters in the Terraform Era
DevOps careerကို လျှောက်နေတဲ့သူတိုင်း Terraform၊ Ansible စတဲ့ Infrastructure as Code (IaC) tools တွေရဲ့ အလုပ်လုပ်နိုင်စွ...
From Surviving to Thriving
“AI ကြောင့် developer အလုပ်ပျောက်သွားမလား?” ဆိုတဲ့ မေးခွန်းကို Junior developer တိုင်း စဉ်းစားဖူးကြမှာပါ။ ဈေးကွက်အခြေအနေ...

