Skip to content

Instantly share code, notes, and snippets.

@seanwalsh
Last active December 22, 2015 03:18
Show Gist options
  • Save seanwalsh/6408889 to your computer and use it in GitHub Desktop.
Save seanwalsh/6408889 to your computer and use it in GitHub Desktop.
SELECT
table1.field1, table2.field1
FROM
table1
INNER JOIN
table2
ON
table1.primaryKey = table2.foreignKey
WHERE
table1.field2 = 'query'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment