Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. SUBBIS
  2. SUBB1D
  3. SUBBD3
  4. SUBB12
  5.  
  6. where column like '%[0-9][0-9]'
  7.  
  8. SELECT MyId,
  9. ISNUMERIC(RIGHT(MyColumn,2)) -- your column to check last 2 (if numeric)
  10. FROM (
  11. ----- replace with your table
  12. SELECT 1 MyId,'SUBBIS' MyColumn UNION SELECT 2,'SUBB1D' UNION
  13. SELECT 3,'SUBBD3' UNION SELECT 4,'SUBB12'
  14. ----- replace with your table
  15. ) A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement