Recap - Parliamentary Election
Coddy SQL 여정의 기초 섹션에 포함된 레슨 — 72개 중 27번째.
챌린지
쉬움사용 가능한 테이블 및 열:
<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