Yeah, my Google mojo finally kicked in.

WHERE
    length(chemical_no) - length(TRANSLATE(chemical_no, 
CHR(1)||TRANSLATE(chemical_no, CHR(1)||'1234567890', CHR(1) ), CHR(1) ) 
) > 0

Returns all 213 records out of the 4+ million that have a non-numeric 
character.  I don't completely understand how, but it works.

Ian Skinner


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:3048
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6

Reply via email to