If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > select replace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-09, 08:22
ziobra_fth ziobra_fth is offline
Registered User
 
Join Date: Jan 2009
Posts: 2
Question select replace

hi!
I have to delete words from a record in the table1. Words to delete are taken from the table 2. I used "select replace (v_1, v_2, '') from ..."
In 2 tables I have records like:
First table: company1 inc, company2 s-corporation, company3 co
Second: inc, co, s-corporation
The point is that words like "inc" are deleted successfully whereas "s-corporation" is counted like "co" and I get "company2 s-rporation" instead of just "company2".
Could u please help me with the task?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On