-
-
Save toyeiei/4de9a4d055c3eb98bf68338f5088cf0b to your computer and use it in GitHub Desktop.
SQL for Beginner - AND OR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- filter customers from USA who also live in CA state | |
SELECT * | |
FROM customers | |
WHERE country = 'USA' AND state = 'CA'; | |
-- filter customers from USA or Brazil | |
SELECT * | |
FROM customers | |
WHERE country = 'USA' OR country = 'Brazil'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment