Menu
Coddy logo textTech

Recap - Police Criminal Arrest

Part of the Fundamentals section of Coddy's SQL journey — lesson 28 of 72.

challenge icon

Challenge

Easy

Available tables and columns:

  • <strong>police_report</strong>: <strong>name</strong>, <strong>report</strong>, <strong>map</strong>, <strong>severe_score</strong>

Fetch the top 5 severe criminal names and order by severe_score in descending order
A severe criminal is someone who matches all of the following criteria:

  • report is either null, or the report contains one of the following letters: g, b, G, or B.
  • map is one of the following places: Caerleon, Dewsbury, Kirkwall, Findochty.

Name the column as worst_criminals.

Try it yourself

All lessons in Fundamentals