> The goal is still the same, to count up all instances of the same zip codes. > The problem is the zip codes are either stored in the 9 digit format, or in > the 5 digit format. I try to account for this by cutting all zip codes to 5 > digits, and then counting them up, but with not luck.
Can you update the database to store the first 5 and last 4 digits separately? Then you can simply group on the first 5 for this and similar things, and concatenate for places when you need the whole thing? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:3091 Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6
