Skip to content

Instantly share code, notes, and snippets.

@hoganlong
Last active March 3, 2017 21:22
Show Gist options
  • Save hoganlong/b5e3dec946e1f9d82910adfeafdae518 to your computer and use it in GitHub Desktop.
Save hoganlong/b5e3dec946e1f9d82910adfeafdae518 to your computer and use it in GitHub Desktop.
SELECT *
FROM tableNm
WHERE circleNm IN ('test1', 'test2', 'test3')
-- is the same as
SELECT *
FROM tableNm
JOIN (
VALUES(
('test1'),
('test2'),
('test3')
)
) AS D(X) ON tableNm.circleNm = D.X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment