Last active
August 29, 2015 14:14
-
-
Save bmchild/a8dea0eb835c4ae484fd 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 User | |
where | |
userId in (:userIds) | |
-- Then we need an OR clause for each match we want | |
OR ( lastName = :lastName1 AND SUBSTRING(ssn, LEN(ssn)-3, 4) = :lastFourSsn1) | |
OR ( lastName = :lastName2 AND SUBSTRING(ssn, LEN(ssn)-3, 4) = :lastFourSsn2) | |
-- ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment