Recap - Police Criminal Arrest
CoddyのSQLジャーニー「基礎」セクションの一部 — レッスン 28/72。
チャレンジ
簡単利用可能なテーブルと列:
<strong>police_report</strong>:<strong>name</strong>,<strong>report</strong>,<strong>map</strong>,<strong>severe_score</strong>
上位 5 の深刻な犯罪者の 名前 を取得し、severe_score を降順で並べ替えなさい
深刻な犯罪者とは、以下のすべての条件に一致する人物のことです:
reportが NULL であるか、またはreportに以下のいずれかの文字が含まれている:g、b、G、B。mapが以下の場所のいずれかである:Caerleon、Dewsbury、Kirkwall、Findochty。
列名を worst_criminals としなさい。
自分で試してみよう
基礎のすべてのレッスン
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