Last active
March 3, 2017 21:22
-
-
Save hoganlong/b5e3dec946e1f9d82910adfeafdae518 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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
Created for http://stackoverflow.com/questions/42586368/how-to-use-the-in-operator-in-a-where-clause-with-azure-mobile-apps-js-client?noredirect=1#comment72305162_42586368