Menu
Coddy logo textTech

Recap - Parliamentary Election

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

challenge icon

Challenge

Easy

Available tables and columns:

  • <strong>ministers</strong>: <strong>seat</strong>, <strong>is_next_gov</strong>, <strong>is_spoke_bad</strong>

Every minister that sits on an even numbered sit in the government is considered a "safe" minister. Your job is to return all of the "safe" ministers seats that want to continue serving in the next government while excluding any minister who spoke a bad word.

The result should contain only the relevant sits.

Before starting to solve the challenge take a look at the table data. It is not clean. The columns is_next_gov and is_spoke_bad contain ones and zeros and also yes's and no's.

Try it yourself

All lessons in Fundamentals