Created
February 5, 2019 07:06
-
-
Save toyeiei/963cd0cf792d67c41bf4b7f36bb438f3 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
# join two tables and select all columns | |
sqldf("SELECT * FROM mtcars | |
JOIN customers | |
ON mtcars.ID = customers.ID;") | |
# join two tables and select some columns | |
sqldf("SELECT c.ID, m.models, m.mpg, c.year FROM mtcars m | |
JOIN customers c | |
ON c.ID = m.ID;") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment