To remove the last "/" character

I need to remove ' / ' character and string comes after him. I'll give an example.

CREATE TABLE TAB (COL1 VARCHAR2 (50));

INSERT INTO VALUES TAB ("IHA/SS/TTTT/FFFF');

INSERT INTO TAB VALUES (' hDFF/AA/S/AAAAAAAA");

I would remove the last "/" and chain comes after him then when I ask, I should get the result that

IHA/SS/TTTT
hDFF/AA/S

Please help me
with testdata as (
  select 'hDFF/AA/S/AAAAAAAA' s from dual union all
  select 'hIA/SS/TTTT/FFFF'     from dual
)

select
 substr( s
        ,1
        ,instr(s, '/', -1) - 1
 ) r
from testdata        

R
hDFF/AA/S
hIA/SS/TTTT

Tags: Database

Similar Questions

  • Delete the last character in the input field

    How to remove the last character of an input field?

    It deletes all

    When you click on:

    SYM.$("textfield"). Empty();

    Thank you!

    Try this:

    var inputTxt = sym.$("textfield").text ();

    var truncatedTxt = inputTxt.slice (0, -1);

    SYM.$("textfield"). Text (truncatedTxt);

    HTH,

    Vivekuma

  • How can I edit a wav file and remove the last 10 minutes?

    I have a wav file which is an hour of time.  I want to remove the last 10 minutes.  Can I do this with Windows Media Player?  How?  Thank you very much, I am very low tech.

    The freeware "Audacity" should be able to do this:
    Audacity: <> http://audacity.sourceforge.net/ >

    HTH,
    JW

  • WHEN UPDATING WE REMOVE THE LAST?

    I OFTEN IGNORE UPDATE OF WINDOWS, BECAUSE THE FILES ARE QUITE LARGE AND I'M AFRAID THAT WITH ALL THESE UPDATES, THE COMPUTER WILL RUN MEMORY OR SPACE.  WE REMOVE THE UPDATE TO UPDATE A MORE RECENT VERSION?

    STILL CONFUSED

    Monday, March 11, 2013 07:43:15 + 0000, cynthiaO wrote:

    I OFTEN IGNORE UPDATE OF WINDOWS, BECAUSE THE FILES ARE QUITE LARGE AND I'M AFRAID THAT WITH ALL THESE UPDATES, THE COMPUTER WILL RUN MEMORY OR SPACE.  WE REMOVE THE UPDATE TO UPDATE A MORE RECENT VERSION?

    Ouch! Please do not yell at us. We can hear you if you type normally,
    in different cases.

    Number of points:

    1 many updates are essential to your safety, and you play
    with fire if you do not install them. Please do not ignore the.

    2 updates do not use memory (or at least, they use only one very)
    small amount of memory). Disk space is what they use.

    3. even the amount of disk space they use is low and so a update
    requires you to run out of disk space, that you have enough disk space.
    and need to buy a second hard drive or replace what you have with a
    cotyledon. What is your car, and how it is free?

    4. do not remove the last update when you install a newer version. You
    need to keep all installed updates. Thus, for example, if update 1
    protects you from A threat and update 2 protects the threat of B,
    keep the 1 update when you install update 2. If you do not, you will be
    exposed to a threat all over again.

  • EqualLogic - remove the last member of the Group

    I want to remove the last member of a pool.  Data has been moved to the other pools.  Will I need to use the reset directly related to the table command?  It is also the default pool but I understand that I can not remove the default pool and it's ok.

    Hello

    If there are yet other members of the group, then NO, please do not use "reset".   That is only used when it is the only member of the Group overall.   You always use the option 'remove member '.  Either through the user interface or the CLI.

    Any pool can be designated as the "default".

    Kind regards

    Don

  • My printer will not remove the last print job

    My printer will not remove the last print job and does not meet what I already found on internet support

    Hello

    If you haven't done so already, try the following.

    From the desktop, hold down the Windows key and press R.  In the run window, type services.msc and press to enter.  Scroll down to the print spooler service, right click and select Properties, then click the Stop button.  Now search for C:\Windows\System32\Spool\PRINTERS, then delete the work inside this folder - you may need to click a command prompt to get the authority to open the PRINTERS folder.

    Restart the computer and you should find that the document has been deleted.

    Kind regards

    DP - K

  • Remove the last sms progrmatically

    How to remove the last progrmatically of sms? Is it possible to do so.

    There is no access to stored sms messages

  • Remove the last element

    Hello

    I'm removing the last element in a LL individually. But it's not entry (method deleteFromTail) and also a message delete2 which I have not written anywhere in my print program... I don't have the code running on any other computer.

    Javax.swing import. *;

    Class StudNode {}

    int id;

    The name of the string;

    Next StudNode;

    StudNode (int id1, String name1) {}

    ID = id1;

    name = name1;

    }

    }

    public class StudListDel2 {}

    StudNode head, tail;

    StudListDel2 () {}

    head = tail = null;

    }

    Sub create4ElementList () {}

    Add them to the queue

    int id = 1;

    int i = 0;

    String name = "THIS" + id;

    StudNode newNode;

    newNode = new StudNode (id, name);

    head = newNode;

    tail = newNode;

    for (i = 0; i < 4; ++ I) {}

    ID ++;

    name = "THIS" + id;

    newNode = new StudNode (id, name);

    tail. Next = newNode;

    tail = newNode;

    tail. Next.Next = null;

    }

    }

    Sub display4List () {}

    tail = head;

    {while(tail!=null)}

    JOptionPane.showMessageDialog (null, "name =" + tail.name + "id =" + tail.id);

    tail = tail.next;

    }

    }

    Sub deleteFromTail () {}

    If only a single node in the list

    JOptionPane.showMessageDialog(null,"delete***=1");

    / * If (head == tail)

    head = tail = null;

    else {}

    JOptionPane.showMessageDialog(null,"delete***=2");

    StudNode temp.

    Temp = head;

    While (temp.next! = tail) {}

    Temp = temp.next;

    JOptionPane.showMessageDialog (null, "led2 inside while" + tail.name + "id =" + tail.id);

    }

    tail = temp;

    tail. Next = null;

    JOptionPane.showMessageDialog (null, "delete3 =");

    }

    */

    }

    Public Shared Sub main (String [] args) {}

    StudList obj = new StudList ();

    obj.create4ElementList ();

    obj.display4List ();

    JOptionPane.showMessageDialog (null, "deleteOOO1 =");

    obj.deleteFromTail ();

    JOptionPane.showMessageDialog (null, "deleteFFF4 =");

    obj.display4List ();

    }

    }

    Someone please guide me.

    Zulfi.

    Hello

    His work. I can't believe. I just changed the name of the file from StudListDel2.java to StudListDel3.java & changed the name of class, he began to work.

    I don't know if the logic is correct. But the logic is correct because I follow the logic of deletion of a book that I used 'while' Loop instead of "for". If any body having time, please read the code of void deleteFromTail () { is correct or not so that I shouldn't be passing wrong information.}

    The complete code is:

    public class StudListDel3 {}

    StudNode1 head, tail, last;

    StudListDel3 () {}

    last = Chief = tail = null;

    }

    Sub create4ElementList () {}

    Add them to the queue

    int id = 1;

    int i = 0;

    String name = "THIS" + id;

    StudNode1 newNode;

    newNode = new StudNode1 (id, name);

    head = newNode;

    last is tail is newNode;

    for (i = 0; i<4; ++i)="">

    ID ++;

    name = "THIS" + id;

    newNode = new StudNode1 (id, name);

    Last.Next = tail. Next = newNode;

    last is tail is newNode;

    tail. Next.Next = null;

    }

    }

    Sub display4List () {}

    tail = head;

    {while(tail!=null)}

    JOptionPane.showMessageDialog (null, "name =" + tail.name + "id =" + tail.id);

    tail = tail.next;

    }

    }

    Sub deleteFromTail () {}

    If only a single node in the list

    JOptionPane.showMessageDialog(null,"delete***=1");

    If (head is tail)

    head = tail = null;

    else {}

    JOptionPane.showMessageDialog(null,"delete***=2");

    StudNode1 temp.

    Temp = head;

    JOptionPane.showMessageDialog (null, "first and foremost remove * = 3");

    While (temp.next! = last) {}

    JOptionPane.showMessageDialog (null, "Inside all-in-1");

    Temp = temp.next;

    JOptionPane.showMessageDialog (null, "inside led2 while name =" + temp.name + "id =" + temp.id);

    }

    last is tail is temp;

    Last.Next = tail. Next = null;

    JOptionPane.showMessageDialog (null, "delete3 =");

    }

    }

    Public Shared Sub main (String [] args) {}

    StudListDel3 obj = new StudListDel3 ();

    obj.create4ElementList ();

    obj.display4List ();

    JOptionPane.showMessageDialog (null, "deleteOOO1 =");

    obj.deleteFromTail ();

    JOptionPane.showMessageDialog (null, "deleteFFF4 =");

    obj.display4List ();

    }

    }

    Thanks for your reply. Its really beneficial when we see the flow back of great programmers like you. I'm not a programmer.

    Zulfi.

  • How can I remove the last action in my story in Lightroom 5

    I want to remove the last action of my story. I know that Ctrl Z is back, but the action is still there

    Hey Vic,

    Please follow the below items for the same.

    Adobe Photoshop Lightroom 4 * cancel the setting of the image

    When to use Reset and history to undo your Lightroom develop work | Lightroom training Laura shoe, tutorials and tips

    Kind regards

    ~ Mohit

  • How to remove the last session of the user of the SQL backend?

    Sometimes the user session gets closed between some of the work for any reason.

    When the next time that the user logs on P6, he gets an error or special functionaly dosen't work for this user or the system hangs.

    In this case if I decided to clear the history of the last session of this user from the databases, how to write the SQL query?

    I don't want to remove all user sessions in the table USESSION and USESSAUD, I just want to remove the last session of the user to particular user (e.g., XYZ).

    You can consult Re: currently connected users

  • Remove the last 35 days of a table data

    Hello

    I had a table to n days of data. I need to remove the last 35 days of data. My table has consecutive dates i.e. There were no load weekend or holidays...

    (1) Using INTERVAL command can simply calculate the difference. So it won't work.

    (2) I can use RANK to find the sequence. Is there a better way to write a logic to delete?.

    concerning

    KVB

    PurveshK,

    I think you have the right idea. Just get the ID of the innermost query.

    This should be quite effective, especially if there is an index on the date.

    drop table t;

    create table t:

    Select trunc (sysdate) - level * 2 double dt connect by level<=>

    delete t

    where rowid in)

    Select rn

    de)

    Select the rowid rn, dense_rank() over (order by dt desc) dr

    t

    )

    where dr<=>

    );

    Post edited by: StewAshton:

    Furthermore, the date field must be NOT NULL for the index be used - or even add WHERE DATE IS NOT NULL to the innermost query.

  • Remove the unknown character

    Hello

    I'm usign Oracle 11 g R2 SOE,
    Please open this link on Fire Fox, you get an error pointing to a strange character.

    FAM-ERP.com/apex/apex_rest.getReport?App=101 & page = 5000 & reportid = JUST

    I'm tired of using different Regexp but do not claim. The string can contain letters, numbers, punctuation

    How can I get rid off the coast of this strange character?

    Best regards
    Fateh

    Hi Fateh,

    First of all, I would like to try to understand why your code displays this weird character. Remove the unknown character away the problem.

    If you want to remove it anyway you can try with REGEXP_REPLACE all characters out of reach you need.
    Try again with

    REGEXP_REPLACE(varname,'[^ -~]') 
    

    which is to detach characters out of the beach, chr (30) to tilde, chr (126).

    You may need to extend this range according to your needs to include additional characters.

    Kind regards.
    Al

  • Retrieve the Position of the last character of Textlayer

    Dear script Experts!

    I wonder if there is a way to get the properties of the position of the last character in a text layer.
    For example, I used this in ActionScript: txt.getCharBoundaries (txt.length - 1);

    Thanks for any help

    Mike

    Available properties for a text layer are:

    applyFill

    applyStroke

    Dialoguegeneral

    boxTextSize

    fillColor

    Police

    fontSize

    Justification

    pointText

    strokeColor

    strokeOverFill

    strokeWidth

    text

    follow-up

    Last I saw, by the data type character recovery was still not available. Even in AE CC. Any extraction layer text property is based on the first character in the text string. So if each character used a font, point size, kerning, etc. only the values of the first character could be found.

    Re: Is it possible to access the text by character properties via script?

    Some other posts here that speak of the location of the text layer:

    Attribute boxTextSize ADBE Text Document

    Get a text box anchor point after scaling

    You can always ask too.

    Adobe - feature request/Bug Report Form

  • Apply the last character of line color

    Hi all

    I'm newbie in Javascript.

    Question: I want to apply the color to the last character in the line. It does not work.

    My lines are:

    myDocument var = app.activeDocument;

    myLine var = myDocument.stories.everyItem ().lines.everyItem () .getElements ();

    for (i = 0; i < myLine.length; i ++)

    {

    myLine [i] .characters. item(-1). fillColor = "SS";

    }

    I think that the error which was held in the item(-1) only occurance.

    Can someone give the solution?

    / * But if I want to apply the color at the beginning of the line, it works.

    This is the line i follow:

    myDocument var = app.activeDocument;

    myLine var = myDocument.stories.everyItem ().lines.everyItem () .getElements ();

    for (i = 0; i < myLine.length; i ++)

    {

    myLine [i].characters.item (0) .fillColor = "SS";

    }*/

    Hello X,

    You must check the end doubled characters is undesirable space, enter brand, shift enter, etc...

    Please try the JS code below.

    var myDocument = app.activeDocument;
    var myLine = myDocument.stories.everyItem().lines.everyItem().getElements();
    for(i=0; i
    

    THX

    csm_phil

  • Remove the last Chr (13) &amp; Chr (10) of a string

    Hello, all.

    I am trying to get confirmation of the files to download on Amazon for its program "Charge when ship".  I have the file create as it should with one minor exception.

    I'm creating a variable, giving him the information header column and that finishing by Chr (13) & Chr (10); I'm a loop in a query to add information, each iteration bugs Chr (13) & Chr (10) at the end of it; I'm taking this variable and writing data to a file using CFFILE.

    But I think that the last Chr (13) & Chr (10) is that servers Amazon think there is a line of information that it really is, and it's one mistake.

    Can someone tell me how to remove the last Chr (13) & Chr (10) of the variable before writing this file?

    Thank you

    ^_^

    What gives the information header column and that finishing by Chr (13) & Chr (10); I'm a loop in a query to add information, each iteration bugs Chr (13) & Chr (10) at the end of it; I'm taking this variable and writing data to a file using CFFILE.

    Trim() the variable or modify the code, so it does not generate an extra newline.

    Because your content has a header, place the new line at the beginning of each iteration of the query characters.

    #headerColumnsHere #.

    #chr (13) ##chr (10) # #ColumnA # ColumnB #... etc...

Maybe you are looking for

  • Multiple accounts with the same email

    I have an account I can not connect to after my daughter it has disconnected. I tried to reset the password, but I get an email on my account to other girls: S (same email)I guess I have 3 accounts with the same email, but only the latter can created

  • HpDeskjet 1050

    I have a HpDeskjet 1050 and have been using it to print photos, however, he stopped suddenly. There had been no lack of ink or paper jam alarm and everything is connected. I opened the photo I want to print, select the size, my laptop has a screen th

  • Files opened again during startup window display

    After closing changed screws, I can see the start window popping up. But when I try to change the name of the directory, where the files closed, Windows reports that it is not possible because an application always accesses these files. As soon as I

  • Type mismatch runtime error 800a00d MSVBScript

    Title: MSVBScript original error Error: Type mismatch 800a00d to TIME MSVBScript error 'Open Conn' / includes/content_left to 11 asp.line Please respond to the * address email is removed from the privacy * I can not enter or find my main email accoun

  • disable the confimation of fax in Officejet Pro 8600 Premiun

    Hello I can't find any place to enable printing of the confirmation by fax to the wide page. There was a suggestion to go to Fax reports, but I don't have a Fax reports page. Fax just history, and there is no option for the confirmation of the turn o