UPDATE cli_branches
SET    brch_name = REPLACE(UPPER(brch_name),'(NO PHONE #S)','')
upper(brch_name) like '%PHONE%';

-----Original Message-----
Sent: Wednesday, July 30, 2003 5:24 PM
To: Multiple recipients of list ORACLE-L


Hi all,
I need to update a column (brch_name) to be without
(NO PHONE #S) string.  So 3954 will be Denver, 3955
will be Golden, and 3963 will be LOVELAND 29TH, etc. 
How to write this update statement???  Thank you!

  1* select brch_id, brch_name from cli_branches where
upper(brch_name) like '%PHONE%'
SQL> /

   BRCH_ID BRCH_NAME
---------- ------------------------------
      3954 DENVER (NO PHONE #S)
      3955 GOLDEN (NO PHONE #S)
      3956 ENGLEWOOD (NO PHONE #S)
      3957 LITTLETON (NO PHONE #S)
      3958 CHARLOTTE (NO PHONE #S)
      3959 S LEMAY (NO PHONE #S)
      3960 HARMONY ROAD (NO PHONE #S)
      3961 ENGLEWOOD (NO PHONE #S)
      3962 LOVELAND (NO PHONE #S)
      3963 LOVELAND 29TH (NO PHONE #S)
      3964 DENVER (NO PHONE #S)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Janet Linsy
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Chelur, Jayadas {PBSG}
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).

Reply via email to