Created
January 10, 2021 16:58
-
-
Save nguyenhaison183/7ae5262c506b107b28bdf055db8f5a9f to your computer and use it in GitHub Desktop.
Project: RPA Customer Segmentation | Codecademy | Analyze data with SQL | 2. Writing basic queries | Extra practice
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
SELECT * | |
FROM users | |
LIMIT 20; | |
SELECT email, birthday | |
FROM users | |
WHERE birthday BETWEEN '1980-01-01' AND '1989-12-31'; | |
SELECT email, created_at | |
FROM users | |
WHERE created_at <= '2017-04-30'; | |
SELECT email | |
FROM users | |
WHERE test = 'bears'; | |
SELECT email | |
FROM users | |
WHERE campaign LIKE 'BBB%'; | |
SELECT email | |
FROM users | |
WHERE campaign LIKE '%-2'; | |
SELECT email | |
FROM users | |
WHERE campaign IS NOT NULL | |
AND test IS NOT NULL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment