Created
April 7, 2015 21:03
-
-
Save phpdave/830dac112ff4ccb8f4a1 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
SELECT * | |
FROM MYTABLE | |
WHERE TRANSLATE (MYTABLE.MYFIELD, 'NNNNNNNNNNX', '1234567890N') = 'NNNNN' AND MYTABLE.MYFIELD<10000 | |
--MYFIELD is a CHAR(5) field and is being compared against 5 'N's |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment