May 1, 2008 at 3:55 pm
How do I select all records with values =4316% and yet exclude those values = 4316S*?
In other words, 43161234 is selected, 4316A345 is selected but 4316S 12 is excluded.
Thanks
May 1, 2008 at 6:24 pm
Like this...
SELECT *
FROM (--==== Test data
SELECT '43161234' AS Value UNION ALL
SELECT '4316A345' UNION ALL
SELECT '4316S112') td
WHERE Value LIKE '4316[^S]%'
--Jeff Moden
Change is inevitable... Change for the better is not.
May 1, 2008 at 6:34 pm
Thank you very much.
May 1, 2008 at 7:40 pm
You bet... thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply