Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: NEED YOUR OPINION

RE: NEED YOUR OPINION

From: Hamid Alavi <hamid.alavi_at_quovadx.com>
Date: Tue, 25 Jun 2002 10:10:29 -0800
Message-ID: <F001.00487234.20020625101029@fatcity.com>


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

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hamid Alavi
  INET: hamid.alavi_at_quovadx.com

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: ListGuru_at_fatcity.com (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).
Received on Tue Jun 25 2002 - 13:10:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US