Recap - Parliamentary Election
CoddyのSQLジャーニー「基礎」セクションの一部 — レッスン 27/72。
チャレンジ
簡単利用可能なテーブルと列:
<strong>ministers</strong>:<strong>seat</strong>,<strong>is_next_gov</strong>,<strong>is_spoke_bad</strong>
政府で偶数番号の席に座るすべての大臣は、「安全」な大臣とみなされます。あなたの仕事は、次の政府で引き続き奉仕したい「安全」な大臣のすべてのseatsを返し、悪い言葉を話した大臣を除外することです。
結果は関連する席のみを含めるべきです。
課題を解決する前に、テーブルデータを確認してください。それはクリーンではありません。列is_next_govとis_spoke_badには、1と0、およびyesとnoが含まれています。
自分で試してみよう
基礎のすべてのレッスン
4More Keywords
The IN keywordThe BETWEEN keywordThe LIKE keywordThe AS keywordRecap - Cellphone Models2Conditions
Conditions BasicsThe AND keywordThe OR keywordThe NOT keywordMultiple Conditions CombinedParenthesisBooleans5Arithmetic Operations
Mathematical OperatorsMathematical ColumnsThe Modulo OperationThe ROUND() Function3Specific Return Format
Null valuesSort Results Part 1Sort Results Part 2Recap - Cyber Security FirmLimit number of recordsRecap - Vehicle Factory6Intro Challenges
Recap - Parliamentary ElectionRecap - Police Criminal ArrestRecap - Bar Beverage ContainerRecap - Engineer new columns