Not really sure of the question, but is ABC_0001001 valid and ABC_00L001 being invalid, my guess would be to stop the valid data going into the database in the first place.
Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -----Original Message----- From: Abhith P [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 September 2006 6:29 PM To: SQL Subject: can i use decode? If so how In my table OM_ITEM, it contains item code in VARCHAR format... Usually the ITEM_CODE like 'ABCD_0001001, ABCD_0001002, ABCD_0001003' this. I want to check whether the second portion of the ITEM_CODE contains any charactor instead of number... And i need the result in the following format ITEM CODE RESULT ABC_0001001 NUMERIC ABC_0001002 NUMERIC ABC_000L002 NOT NUMERIC ABC_000i005 NOT NUMERIC So which query i have to execute to get the desired output ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2562 Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6
