sql server - Query to find zip codes with ending '0000' -


i need find zip codes in database end '0000'. using below query, able return zip codes 9 digits in length. how add return zipcodes have 9 digits in length , have 0000? i'm sure it's simple i'm still new querying. :)

example: 922340000

select addresszipcode dbo.cr_member_allmemberdetails len(addresszipcode) = 9 

select addresszipcode dbo.cr_member_allmemberdetails len(addresszipcode) = 9 , addresszipcode '%0000' 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

sql - MySQL Custom calculate views -