Guest User

Untitled

a guest
May 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. with zips as (
  2. select id ,cast(replace(replace(left(ltrim(Zip_Code),5), '-', ''), char(32), '0') as int) as zip_clean
  3. from table1)
  4.  
  5. select * from zips
  6. where zip_clean in
  7. (19116,
  8. 94595,
  9. 60062)
Add Comment
Please, Sign In to add comment