Skip to content

Instantly share code, notes, and snippets.

@toyeiei

toyeiei/.sql

Last active Nov 8, 2018
Embed
What would you like to do?
SQL for Beginner - AND OR
-- 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
You can’t perform that action at this time.