Remove the first word of a line based on delimiter

Hello

I have data like this in a column:

Word1 Word2 mot3

Word1
Word1, Word2

And I want that the select statement to return the row without first word OR keep it what if there isn't a single word in line. As:

Word2 mot3

Word1
Word2

So I think as we look in the line "returns all the data after, or SPACE ' and ' leave as what if there is only one word" (should be so that there is no empty space after the word).

Is it possible to do something like this with a select query? What would be a good solution?

You can do this sort of thing with regular expressions for example

Select regexp_replace (columnname, ' ^ [^] + (. *) $', '\1') as newvalue

TableName

(I hope, that works, I can't test the minute I don't have access to a database)

Tags: Database

Similar Questions

  • "BOLD" from the first words of each line?

    I wonder if there is a way to fully automate this. I'm style expandable body of interview-format the text, and I would only the first word of each paragraph, be bold if they are one of the three names. I currently have a nested style black the first word of each paragraph, but not all of the paragraphs in the text begin with a name of interview. Can anyone help?

    Depends on if you need it to happen automatically when you start new documents with interviews, or if you need to do just for a single doc where all your text has already been sent to. If the latter, I had:

    (1) make a duplicate of the nested-style-parastyle called BoldNames

    (2) remove the nested style old style paragraph - now zero paragraphs have the nested style applied, and you have a separate unused paragraph with the nested style in style.

    (3) research the doc with a GREP query:

    To find

    ^(Jake|) Joel | James)

    Implement

    $

    with the format of

    BoldNames

    In this way, only the paragraphs that have one of these names at the beginning of the paragraph will be marked with the paragraph style that owns the nested style that applies "BOLD".

  • Delete in af:table always remove the first line when using ExecuteWithParams

    Hello world

    I got a page with master form and af:table two details related to the master. When I'm trying to remove a line in an af:table of detail, it always removes the first line, any line, I selected before. The table has a single = rowSelection and the line is properly visually selected. I remove the line using a "delete hyperlink" on each line, but I first have to select the line. Delete called a bond (or a method at the bean by removing the current line of the iterator, I tried both, none of them work)

    Links page has an ExecuteWithParams defining the correct ID to edit on the master of iterator and an InvokeExecuteWithParams the renderModel value. If I put the refresh condition zero and I hard-code an ID in the binding variable in the model, I am able to delete the selected line.

    In addition, I don't know if this information is useful, but if I set the iterator to PPR ChangeEventPolicy, when I select a line, there always select the first line.

    Any ideas what I could do wrong? Is this a bug?

    I use JDev 11.1.1.7

    Thank you

    Guillaume

    You can try creating a method in ApplicationModule for filter master records instead of executeWithParams?

    Ashish

  • What is the best way to change the color of the first word in a paragraph?

    I have a lot of paragraphs where I want that the first word to keep the same font, the size, the type - but I want to change just the color of the lettering.

    I suggest to do this:

    (1) change your BC 4567000000 to the following line:

    4,567,000,000 BC - name derived from Hades.

    (2) add the following line after the top of the page:

    . first-word {color: red ;}}

    Note the period in the above code.

    The top of line will now look like this:

    H1 {make-size: 200%; do-family: "Comic Sans MS"; color: #66FFFF; text-align: center ;}}

    H2 {make-size: 100%; do-family: "Comic Sans MS"; color: Red ;}}

    p {make-size: 100%; do-family: "Comic Sans MS"; color: #EEEEEE ;}}

    . First-word {color: red ;}}

    Alternatives are almost similar to this one but try this one and then come back and demand the implementation of alternatives.

  • [JS] [CS3] Apply the character Style to the first word

    I'm a noob that Javascript is concerned, and I expected a little guidance.

    Here is my scenario: I have a book that was composed in a single file; the main content is in a story. I want to select the first word in each block of text on each page and apply a character style. My goal is to use this character style to indicate the page breaks in the XML document - I maps to a specific tag style.

    So far, I have this poor specimen:

    myDocument var = app.activeDocument;
    myPage var = myDocument.pages.item (1);
    var myTextFrame = myPage.textFrames.item (0);


    If (app.activeDocument.stories [0] .paragraphs [0] .words [0]! = null)
    myTextFrame.paragraphs.item (0).words.item (0) = .appliedCharacterStyle
    myDocument.characterStyles.item ('foo');

    I know, I did not implement any kind of loop again (which will be more complicated given that there will be some blank backs, etc.). What I try to do in this is to select the first word in the first paragraph on the second page - which it does in reality. It's the first paragraph of the second begins on the first page, so I select that word on the first page, second page.

    As I said, a lot of work to do but a bit of help on getting to the right word would be most appreciated.

    Well, you were on the right track, but the "myText" test fails if there is no block of text on a page, because it fails a line earlier

    > var myTextFrame = myPage.textFrames.item (0);

    just before that, you must test the number of blocks of text:

    If (myPage.textFrames.length > 0)

    {

    ... your stuff...

    }

    Use it only if you are absolutely positive that there is just a block of text on each page! A slightly better way would be to always loop on each textframe:

    for (frames = 0; frames

    {

    var myTextFrame = myPage.textFrames.item (frames);

    .. etc.
    }

    in this case you don't have test his first length (the loop will not be executed if there is zero text blocks).

    [Grumpy] Since you have only a continuous story, an even better way would be to loop on texts related to this single story executives. You must identify the story somehow, and I usually click on the text cursor in the one that I need:

    monarticle = app.selection [0] .parentStory;

    or you can rely on the fact that the story begins as part of text on page 1:

    monarticle = app.activeDocument.pages [0] .stories [0];

    (I think this should work.) Then, each frame of the story until the end can be found in the table

    myStory.textContainers

    which are usually text blocks. Make a loop on them to help

    for (image = 0; frame)

    {

    myTextFrame = myStory.textContainers [frame];

    .. etc.

    }

  • Why no iphone 6 and iPad (mini and Air2) capital at the beginning of the first word in the search bar of Safari

    Why no iPhone 6 and iPad (Mini and Air 2) not capitalize first letter of the first word in Safari on the search bar?

    Web addresses contain no capital letters, nor do email. If looking at you any new credit card and it says to activate this card go to www.CardnameService.com/Activate, their meaning is www.cardnameservice.com/activate. It's the same thing.

    The above examples are that of the examples.

  • How can I make Pages capitalize the first word in a sentence?

    How can I make Pages capitalize the first word in a sentence? The I phone t - it, the iPad does, why not not iMac using Pages capitalize the first word on a new sentence?

    Pages of IOS and IOS itself remain different implementations of Pages v5.6.1 for Mac and OS X. In any version of Pages v5, if there was an option to preferences in Pages ' 09, there is no auto-capitalisation function.

    See my previous post is launching an OS X App Store free application, which can be applied to auto-capitalisation to your Pages v5 documents.

  • Remove the first 5 blocks in a data stream

    Hi all

    I have a problem to remove the first 5 blocks in the data stream. My sampling rate is 1 s, block size is 1 and the entrance is the module «the ddf file read»

    I use the following modules for an average analysis 30 years running.

    [read the folder]---> [Formule1] -> [set variable] -> [formula2]

    |                 ^

    --> [time]-|

    module parameter

    ======                =========

    delay of 30

    Formula1 ${var_1} + in (0) - in (1)

    the value of variable ${var_1}

    Formula2 in (0) / 30

    This configuration is used for channels 13 and one of these channels is used for purposes of triggering. Due to the nature of the variable defined and read in the underlinedmodules, the trigger sequence is delayed for 2 sec. Since I used the trigger to collect the last returns average of each channel, it is now mixed with 2 sec for the next round.

    My question is: is there a way to reduce say 5 blocks of data from the stream? Please help and have a nice day

    Look at the SEPARATE module in the Group of data reduction.

    It allows you to set up an initial leap, then a current break.

    To do this, you want to jump 5 blocks once, does through go zero blocks... who spends the first five and then release all the data blocks of subsequence.

  • When I print from Windows Live Mail, the left margin is far more than the first letters of each line are missing. Where can I go to change the margin?

    When I print from Windows Live Mail, the left margin is far more than the first letters of each line are missing.  Where can I go to change the left margin on Windows Live Mail?

    Print settings are in Internet Explorer, the file (ALT + F keyboard), Page Setup

    Increase the left? the margin of

  • Receive emails from retailers who have 'click' as the first word.

    Original title: cannot find ' click on ' addresses?

    Lately I have received emails from retailers who have 'click' as the first word, such as click.elowes.com and I always get a 'not found '.  What is the problem?

    Hello

    As you use Windows Live mail, you can also post your request in the Windows Live forums to get help.

  • I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    Example:

    Text Example.JPG

    I need to remove these numbers PXXXXXX. Leaving the other characters.

    Thank you

    Bob

    A normal 'substring' is what you're looking for.

    For a formula of the column in the response criteria tab:

    SUBSTRING ("YourPresTable". "YourPresColumn" OF 9)

    To make the RPD and the workload of shipping off the coast to the database rather than forcing the work on the server of the OBI or presentation:

    Substring ("01 - Sample App Data (ORCL)" ".." ") "" "BISAMPLE '." " D10 product (dynamic table)". ("' Prod_Dsc ' 9)

  • How to reference the first word in a text frame (threaded)?

    Hello.

    I have a series of threaded text images.
    I want to be able to reference the first word of each of them.
    [This is no big deal to start the project and do it all on the fly].

    Any ideas how I can get there?

    Any help would be appreciated.

    To get the content of the Word use myWord. content to move the Word use myWord. move (LocationOptions.AT_BEGINNING, myDestinationTextFrame);

  • How can I remove the first 3 characters of the files?

    I'm using the bridge for a while and rename the lot

    How can I rename to remove the first 3 characters of the files?

    (these are numbers)

  • GREP in parastyle - all the words in tiny paragraph outside the first word

    Hello. I hope for more assistance with the implementation of a GREP in a paragraph style.

    I'm composition several books and the many subtitles (all in the same paragraph style) are written so that each word is capitalized. The editor here now only the first word of each subheading to be capitalized, and instead of working my way through them manually, I was wondering if a GREP could achieve this? I know there are exceptions with proper names, but they are few.

    Any help appreciated, as any quick explanation on each part of the GREP so I understand better how it works!

    If the text was actually indexed using corks, it cannot be changed using GREP, but it may be film script. Script updated Dave Saunders style find/change case script would probably do what you want (change because of the sentence).

  • Capturing the first word of a textbox

    Good, small problem, I can not understand how to get the first word in a text box. Here's the code that captures the full range:

    var LSTN = "LSTN" + xfa.form.OUTSTCHK12.FormPage1.Subform1.PayeeLastName.rawValue; ".

    If someone could help me please, I would be very grateful.

    Well, now you know ho to spread the word, it is just a case of assigning to another field. Assuming that the other field is called OtherField, you would use a command like this:

    OtherField.rawValue = words [0]

    Paul

Maybe you are looking for

  • problems with musicmatch

    I subscribed to game music, expecting to access my itunes library on my iphone, but I see only a fraction of my content.  Its very clear that registering for this service allows me access to all my library, if it was purchased through itunes or other

  • Cannot access the BIOS on the Satellite L40T-A202

    Hello! Months ago, I've updated the bios of my laptop Toshiba L40T-A202. After reboot I can't access the bios. I fixed it by jumping the jcmos into the mobo. Now the problem occurrd again and I can't seem to fix it with the same problem I did. Can so

  • Satego P200-15U: graphics card does not work on Vista

    Jin I installed vista home premium professional vista, but do not have the ati hd 2600 grafik.my system: satego p200-15u with ati hd2600 grafik 1. I looked at the download area for this software grafik driver toshiba, but his only showin to nvidea an

  • should I install applications before transferring easily?

    Win7 for win7. should I install applications before transferring easily? In addition, transfer outlook 2007, use export in outlook? Thank you.

  • BlackBerry 8330 Smartphones emil installation problems

    Hello I tried to implement a work e-mail via Blackberry Enterprise Server, but my month of TI will not allow this - so I went to my personal account @cox.net. Currently, the phone shows only my email acocunt however put in place to find out: (1) I re