Replace the text of another table

I have 2 tables and table_a table_b

Table_a has names in there while table_b has prefixes in there.

create table table_a (name varchar2 (4000));

insert into values table_a ("pepsi co ltd");

insert into values table_a ('abc limited');

insert into values table_a ("def corp");

Insert the table_a values ('xyz');

create table table_b (suffix varchar2 (4000));

insert into table_b values ("co ltd");

Insert into values table_b ('limited');

Insert into values table_b ('corp');

My reqirement, it's that I need to select then part of suffixes removed names

Table so a willingness to return.

"pepsi."

'abc '.

"def".

"xyz".

There is no condition of 2-table join.

I tried something like that, but it gave me a error "subquery returned more than single-line a line."

SELECT NAME, REPLACE (B.SID,

(SELECT FROM table_b suffix, table_a WHERE NAME LIKE '%' | suffix |) » %' ),'') A

FROM table_a A

select A.name, replace( A.name, B.suffix, '') short_name
from table_a A
  left outer join table_b B
    on (A.name like '%' || B.suffix);

Make sure you save this short_name somewhere if you do not have to re - process data.

MK

Tags: Database

Similar Questions

  • I have different bookmarks I want to keep on each computer, synchronization will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place

    I have not yet used sync, but I sense it's going to be a problem if I do. I have different bookmarks I want to keep it on each computer. Sync will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place? So I think that will erase the bookmarks on the second computer you configured to synchronize. Is there a way to merge bookmarks on every computer in the library of a bookmark that contains all bookmarks on both computers, so I'm not all bookmarks in sync?

    Just to be clear, this is something that we have commented several times in the forum, Firefox Sync adds everything that is already in the device for the account and pushes this info for the rest of the devices.

    So if you have 2 computers with data X and the other with the data from there, once you set up synchronization in both computers you will have X + Y at the same time.

    I hope that clarifies the doubts...

  • If I replace the control with another why DAQmx create channel once complain a false claim?

    I tried to replace the frequency by another control in the example found here complete PWM:

    http://www.NI.com/white-paper/2991/en

    However, I get the following error message:

    Possible reasons:

    Requested value is not supported for this property value. The value of the property may be invalid because it is in conflict with another property.

    Property: CO. Pulse.Freq
    Required value: 0.000000
    Valid values begin with: 22.300000e - 309
    Valid values ending with: 20.0e6

    Channel name: Dev1/ctr0

    Task name: _unnamedTask<10>

    My wiring diagram looks like this:

    If I cancel my change (i.e. I have remove the frequency control knob and turn it over to the control of the example, it works perfectly.)  I get the waveform is displayed in the oscilloscope.

    My goal is to simply use a frequency and duty cycle control knob.  How can I achieve this?

    There are two things to do.

    What I think you did now changes the scale of the handle.

    You will also need to change the values that are allowed to enter. You will do on the data entry tab in the dialog button properti.

    Uncheck the 'use default', the Minimum value limits and Maximum identical to your balance.

    Value "Response to value out of range" Coerce to both Minimum and Maximum.

    I hope this helps.
    Let me know if you have more problems.

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

  • Where is the tool replace the text since the update yesterday?

    I opened Adobe Reader DC today and thought that the toolbar was different. The text replacement tool has disappeared (the one with the crossed T and bubble comment next to it)!

    I think that Reader downloaded an update yesterday.

    If I want to replace the text (instead of simply delete or insert, I can always do it manually (by highlighting the text I want to change by typing my changes).) However, the changes appear in red and blue, which he has not done before (text was blue just before).

    I checked the tools available and there is no option for text replacement tool more.

    In addition, the highlight color has changed - it is now orange instead of yellow. Is it because of the update too? >

    This happen? I use a lot the text replacement tool. Please can have back?

    Hi janeh87695323,

    Please select the text and right-click on it.

    Then select the "Add a note to replace the text" option in the drop-down list.

    Kind regards

    Meenakshi

  • I've created a form that uses the value field text to fill the text of another field.  Does not take into account changes

    I've created a form that uses the value field text to fill the text of another field.  However, if I need to change the text, the second field does not update this change.  Instead of reset the form each time, is the Javascript code to update the fields if they have been modified?

    For example I Text1 and Text2.

    When I type in Hello in Text1 I see Hello in Text2.

    Later, if I decide to change to Goodbye Text1, Text2 remains Hello.

    The shape of the hoe can recognize this change?

    Thank you

    Edit: I think I have misunderstood the situation.

    If you want to both fields have the same value, just to give them the same name.

  • Replace the text

    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value
      '\\Computername\Path\comp_name\\domain\\location' 
    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    Replace
     \\domain\\ 
    with
     \domain\ 
    I tried with query below...
    SELECT REGEXP_REPLACE('\\Computername\Path\comp_name\\domain\\location' ,
           '(\\){2,}', '\')
           AS Expression
      FROM dual;
    I get the below result to top query.
      \Computername\Path\comp_name\domain\location 
    But I want the result as below...
     \\Computername\Path\comp_name\domain\location 
    I use Oracke vesion 11g.

    Please help me on this.

    Thanks a lot for your help.

    Hello

    sunitha2010 wrote:
    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value

      '\\Computername\Path\comp_name\\domain\\location' 
    

    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    I guess that the 1st appearance will not always be at the beginning of the string.

    Replace

     \\domain\\ 
    

    with

     \domain\ 
    

    I tried with query below...

    > SELECT REGEXP_REPLACE ('\\Computername\Path\comp_name\\domain\\location',

    '(\\){2,}', '\')
    AS Expression
    DOUBLE;

    REGEXP_REPLACE has an optional 3rd argument, which allows you to say what position in the string to begin the search, you can do something like this:

    SELECT  REGEXP_REPLACE ( str
                            , '\\\\'    -- 2 backslashes, escaped.  See note below
                     , '\'
                     , 2 + INSTR ( str
                                       , '\\'
                           )
                     )     AS expression
    FROM    table_x
    ;
    

    In the 2nd argument of REGEXP_REPLACE '-' has a special meaning. To say you want a literal character, you have to escape , by putting a '-' immdiately before the special character, which in this case is be '-' also.

  • Replace the text with formatting

    I need to replace every occurrence of the word with impatience! with forward! in italics. I have not found a way to do... Any ideas?

    Thank you

    JackL

    Captivate 7 - Windows 7

    I have the answer for those who are interested. Captivate (7) lets you export captions and subtitles to Word. Once in Word, simply replace the text sought by the text in the layout you want, save, and then re-import the Captivate projects. Works perfectly, with a caveat. If you use bullets (standard or numbers), the hyphen and the bullet formatting to these legends may require some manual adjustments after importation.

    In any case, this process has saved me a lot, a lot, a lot of hours!

    Jack Loganbill

  • Add line replaces the text

    Hello

    I was creating a form and I have 2 lines that the user can add a new line. the first works fine however the second simply replaces the text below.

    Am I missing something obvious that would prevent this?

    I would have joined the form but I do not see how to add a pdf file

    G

    Hello

    Here is the link to the form that I have worked on https://acrobat.com/#d=KNwNaVZSykxgNoSkN * 2XIw

    But the problem is: I've changed the Page - 2 set to slur all fields have say arranged. Yo the need to align those.

    What I've done: changed the Page - 2 set to flowed.

    Wrapped last two subforms in a single form.

    Thank you.

    Sidonie.

  • alignment of the text in a table.

    Hi all.

    How to centerlize the text in a table?
    any help would be greatly appreciated.

    Sarah

    Hi Sarah,.

    Set the Justification property for the text like Center element.

    I hope this helps.

    Best regards

    Arif Khadas

  • How to make a value in a temporary table, the match against another table...

    Hi all.

    Please is - can someone provide some guidance on how to...

    1. take a value from a temporary table, the match against another table that contains the first values 'equivalent' value.
    2. take this exchange value, call something (using the slider or the variable?) so I can add to my API to load it into ORACLE...

    Apology of this sounds confusing, I hope you know everything what I want to do...

    Manythanks...

    Steven

    and call the API

    declare
       v number;
    begin
       SELECT oracle_loc_code
          into v
       FROM SU_IEXP_LOCATIONS
          , SU_TEMPLOYEE_DETAILS
       WHERE chris_loc_code =location_id
       ;
       Hr_Assignment_Api.update_emp_asg_criteria (v);
    end;
    
  • Is there a good way to replace the text "See basket" by another text?

    I have a big problem, I'm still stuck with that, I hope someone can help me.

    I need to change the text "See basket" in the cart summary module. I learned that I can do this with javascript: http://forums.adobe.com/message/4409239#4409239

    But there are problems:

    When I use this javascript:

    " < script src =" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.7.2/jQuery.min.js "type =" text/javascript"> < / script > "

    < script >

    $(function () {})
    $(".cartSummaryLink").text ("Afrekenen");
    });
    $(function () {})
    $(".cartLink").text ("Winkelwagen is alone");
    });

    < /script >

    The 'see the basket' is replaced by 'afrekenen.

    BUT:

    1. When I add another product to the presentation of big product the text "see basket" is back...
    2. When I delete a product in the basket the text "See basket" is also back
    3. When I refres page the text "See basket" is replaced with "afrekenen.


    So I thought to use javascript to refresh the page when a product is added:

    < script type = "text/javascript" >

    function AddProductExtras() {}
    document. Location.Reload (true);
    }

    < /script >

    This works, but you can see that the text changes from 'afrekenen' to 'view basket' and "afrekenen" as the page is again a regeneration which is not a very good solution.  So here are my questions:

    1. Is there a better work around?
    2. If not, is it possible that when a product is removed from the basket page can also be updated?


    Thank you

    Frank

    Hi Frank,.

    I suggest that you use CSS and replace the basket with an image. The following should help:

    {a.cartSummaryLink}

    background: url(your-image.png) 0 0 no-repeat;

    Width: 120px;

    height: 27px;

    vertical-align: middle;

    display: - moz - inline-block; / * for Firefox * /.

    display: - moz - inline-box; / * for Firefox * /.

    Display: inline-block;

    text-indent:-9999px; / * mask the text * /.

    }

    See you soon,.

    -mario

  • Replace the text values

    Hello.

    I have problem with replacement of values in text strings and I can't find a solution.

    I have two or three channels filled with only 2 values: OK and NOK. How can I replace these values with for example 1 for OK and 0 for NOK?

    This replacement is necessary for drawing a chart. I can't draw the chart because the tiara do not accept the values of text like a ladder with the current values.

    Thanks in advance :-)

    Hello Domin,

    replaces a substring in a text with another text can be done with VBS 'Replace' function

    The execution of a function on an entire channel can be made using ChnCalculate.

    Combine the two and you get:

    ("ChnCalculate ("ch ()"" statistics text"" "") = Replace (ch ("' statistics text" "" '), '' value' ', "" LLL"") ")

    It is a channel in the DIAdem example data set. The above command executes the command "Replace" for each value of the text string "text of statistics". He replaces each occurrence of 'value' by 'LLL '.

    Hope this helps

    Andreas

  • replace the text in html

    We have a column of type CLOB data table. This CLOB column store html text.

    the example data:

    < p >

    Do the same for the footer:

    < /p >

    < p >

    < br / >

    < table border = "0" cellpadding = "0" cellspacing = "0" style = "" width: 672px "width ="840">"

    < tbody >

    < b >

    < td nowrap = "nowrap" style = "height: 31px;" Width: 152px ">"

    < p >

    [Number of lines in the body]; 1 < /p >

    < table >

    < /tr >

    < / tbody >

    < /table >

    < /p >

    How can we replace the string 'body' with 'dummy' in this example without replacing the tag "tbody"?

    We want to apply a find and replace function of html data, without touching the html tags.

    How can achieve us on db oracle 11.2?

    TX

    For complex examples, you can use the parser HTML for example (JSOUP) available on this site: jsoup Java HTML Parser, with the best of the DOM, CSS and jquery

    You can load the jar with loadjava file into database and do a stored procedure for analyzing and replace java html code...

    It's simple and powerful library...

    Defining the content of the text of the items: jsoup Java HTML parser

    Selector syntax is used to find items: jsoup Java HTML parser

    You simply load html in the parser... and then you iterate tags and search of the string, you need to replace...

    Replace this string and save html updated the db back or where you want...

  • Help: Change the color of the font of the text in a Table with the key

    Hi all

    I'm designing a website for a college project in Dreamweaver CS3. Currently, I am implementing accessibility for users, creating a background/font color changer. By making the transparent table, I can now change the background color together. However, I'm fighting to change the color of the font.

    To see what I mean, here is so far the Web site: http://itsupport.comlu.com/index.html

    At the top left, you will notice buttons. It's the color changer.

    The problem of course, is that the text is unreadable when I change for say, a white background.

    Here is my code for the buttons:

    <! - color changer - >

    < form >

    "" < input type= "button"

    value= "White" style= 'background: white;"

    onClick= "document.body.style.backgroundColor ="#FFFFFF "; "Table1.FgColor = '#000000';" >


    "" < input type= "button"

    value= "Green" style= 'background: Green;"

    onClick= "document.body.style.backgroundColor = ' #008000 '; document.fgColor =' #FFFF00";">"


    "" < input type= "button"

    value= "Blue" style= 'background: Blue;"

    onClick= "document.body.style.backgroundColor = ' #0000CC '; document.fgColor ='#FFFFFF ';" > "


    "" < input type= "button"

    value= "Red" style= 'background: Red;"

    onClick= "document.body.style.backgroundColor = ' #FF0000 '; document.fgColor =' #FFFF00";">"

    < / make >

    The table is named "Table1". I guess I have to refer to this somehow, but I don't know how. You can see in the code of the white button I tried "Table1.fgColor" and similar variations.

    I know many of you will say just "do not use tables. Yes, I learned that the hard way. Unfortunately, I have no time completion of this project, so I do not wish to recreate the entire site using DIV tags

    Thanks in advance!

    You can download the .js files on the example site you mentioned. Or, you could use a CDN service hosted and your page a link to there .js files.

    You can link jquery.js from Google - http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

    Code will be in yourTags as follows:

    You can also download these files .js locally and bind them on your own server.

    This is a jQuery CDN repository: http://code.jquery.com/

    You can also use another CDN - http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery

Maybe you are looking for

  • Qosmio F60 refuses to stop

    When I try to stop the laptop, it refuses to turn off completely...The screen goes black but the power button lights up and the fans go crazy. I run a ccleaner and tried to turn the background process before you stop but nothing seems to help.The sam

  • Graphic with several plots, a cursor jumps by programming of intrigue to tlot

    Hello I use MS 2013 with Vstudio 2010 I have a graph with 3 plots, and a slider that at design time is attached to trace 0. I need to attach this cursor on plots of 1 or 2, according to the index of my choice. I guess that a solution would be to remo

  • View files on CRIO

    Hello I've been using the RT file write text found in the following link. This shows how to read and write to a file on the cRIO text and what I want to do is to check that the file is created and that the appropriate data is stored. How would I go a

  • Convert Microsoft Works doc to PDF format for email

    How can I convert my Microsoft Works Word doc and the sheets in PDF format, so that I can their email succussfully?  Now when I try to send, no one can open or view the attachment unless they use Windows Vista as well.

  • After having removed the Vonage modem, computer can't find Linksys router

    Initially, I had my computer access the internet through a Linksys - Vonage - cable modem router. Recently, I dropped my Vonage service and get the modem. Now--even after the reset of the router and the modem - when I have a modem-router-computer-cab