Raj, I want select only those service_code which start with a number(0-9) then user to_number, replace select all those also start with (a-z).
-----Original Message----- Sent: Tuesday, June 25, 2002 9:53 AM To: Multiple recipients of list ORACLE-L where to_number(replace(msc_service_code,'ABCDEFGHIJKLMNOPQRSTUVWXYZqazwsxedcrfvtg byhnujmikolp')) between 7 and 30 ... Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art! -----Original Message----- Sent: Tuesday, June 25, 2002 12:39 PM To: Multiple recipients of list ORACLE-L LYNDA, If you look at my table staructure service_code in varchar2(30)and the data in this column can be a number or a number start with a charachter(A-Z)like A1200,B6500,Z9098 etc,in first subquery I want to select all those service_code wich start with (0-9) then in WHERE Clause I use TO_NUMBER becaz I know in subqury It returns all the numeric values: E.G select count(*) > from (select MSC_SERVICE_CODE,MSC_MTF_SERVICE_ID > from MTF_SERVICE_CODE_MSC > where > substr(MSC_SERVICE_CODE, 1, 1) in > ('9','8','7','6','5','4','3','2','1','0')) a ----->>> reurn all service code start with 0-9 > where > to_number(a.MSC_SERVICE_CODE) between 7 and 30 --->> Here a.MSC_SERVICE_CODE convert it to TO_NUMBER . Thanks allot ======================= Confidentiality Statement ======================= The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from disclosure under applicable law. If you have received this message in error, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. ===================== End Confidentiality Statement ===================== -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Hamid Alavi INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).