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
Post a Comment