Created
August 26, 2016 17:31
-
-
Save briu/104a8de0b59b4d490ebea0f8b9278441 to your computer and use it in GitHub Desktop.
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
CREATE TABLE orders ( | |
id integer, | |
name varchar(255), | |
address varchar(255) | |
); | |
CREATE TABLE order_items ( | |
id integer, | |
price integer, | |
order_id integer, | |
quantity integer | |
); | |
# select orders where id is even and have more then 3 order_items | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment