IN and NOT IN
IN tests membership in a list and is shorter than many ORs.
Example
SELECT name, country FROM students
WHERE country IN ('Ghana', 'Kenya');Result
name | country Kofi | Ghana Wanjiru | Kenya Esi | Ghana
Exercise
Match any in a list.
WHERE country ('Ghana')
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.