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

*********************************************************************2

This e-mail message is confidential, intended only for the named recipient(s) above 
and may contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank you.

*********************************************************************2

Reply via email to