Is trim() useful for splitting up a string that has a delimiter?

Hi all
below is an example of my data
Col 1
abc_ijk
a_xyz
pq_b
I need to split up abc_ijk into 'abc' and 'ikj' and store them into another table. Can i use trim? I know that i can specify the number of characters to split it up, but my number of characters for each row is different. how can i tell trim to remove everything after(including '_') so that i can get abc, as well as remove everything before(including '_') so that i can get ijk?

And in 10g you could use regular expressions ... (scnr)
WITH t AS (SELECT 'abc_ijk' col1
             FROM dual
            UNION
           SELECT 'a_xyz'
             FROM dual
            UNION
           SELECT 'pq_b'
             FROM dual
SELECT col1,
       REGEXP_SUBSTR(col1, '[a-z]+', 1, 1) fld1,
       REGEXP_SUBSTR(col1, '[a-z]+', 2, 1) fld2
  FROM t;C.

Similar Messages

  • I am a small service company and we use the iphone 4 do you have a program we can use for scheduling one one computer that has all the schedules of our service techs so we can change appointments and track

    I run a small service company and we use the iphone 4, do you have a program we can use for scheduling from one or two computers that allows us to schedule service calls and track our service techs.
    A program we can enter each phone and have there schedule and current location available at all times.

    Search the iTunes App store or find a developer to create an app that meets your needs.

  • What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    Usually Fat32/MS-DOS as mentioned, but that has several limitatiuns, like 4GB filesize limit.
    One option is MacDrive for you PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/
    More options...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930

  • He iTunes Store account entered is already being used for an iTunes Connect account that distributes Apps

    I am getting the following message when trying to sign up with iTunesConnect for selling our companies eBooks.
    "The iTunes Store account entered is already being used for an iTunes Connect account that distributes Apps. To continue with this application, you must enter a different iTunes account."
    The email account I am using is not being used for distributing apps. We need to sell ebooks.
    We DO have a developer account to sell apps but it is a different email address (confirmed).
    How should I go about getting this straitened so we can get into iTunesConnect?

    That worked, thank you very much! The Apple support document is quite misleading then.

  • Dynamically Setting a Variable from a Connection String that has been set by a Config File

    Hi Guys
    I'm setting up a Master / Slave (Parent / Child) dtsx environment but I'm unable to work out how to dynamically set a variable in the Master dtsx from a connection string that has had its value set by a config file. I'm sure it's possible.
    Below is the what I'm hoping to achieve. I've set up everything apart from the highlighted section.
    Any ideas?

    First, what version of SQL Server are you using?
    You could switch the problem around.  You could set the value of a variable from the config file, then it is easy to use that variable as the connection string source for your connection manager.  At the same time you can use a parent variable
    configuration to map that variable to variables in your child package.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How can i use iTunes 10 with my ipad that has ios7

    how can i use iTunes 10 with my ipad that has ios7

    jpbblues wrote:
    how can i use iTunes 10 with my ipad that has ios7
    You cannot. You need iTunes version 11 for iOS 7.
    iTunes free download from www.itunes.com/download

  • Can I use Apple Pay at any store that has an NFC reader or has that merchant had to have signed up to accept Apple Pay?

    Can I use Apple Pay at any store that has an NFC reader (with no Apple Pay logo) or has that merchant had to have signed up to accept Apple Pay?

    If the merchant accepts contactless payments, you should be able to use any contactless payment option (which includes Apple Pay).
    Some merchants (like CVS) have NFC readers but they have been deactivated because they are a member of a competing payment system (Current C).

  • How do i remove a old never used icloud account from my iphone that has never been vif, how do i remove a old never used icloud account from my iphone that has never been vif

    how do i remove a old never used icloud account from my iphone that has never been vif, how do i remove a old never used icloud account from my iphone that has never been vif and the email is not used

    Hi BJEast,
    If you are having issues changing or removing an old iCloud account from your device, you may find the following article helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    Regards,
    - Brenden

  • Best way to look for next char in String that is NOT "-" or " " or ","?

    I have a long String that is sent to me and needs to be parsed. Normally I can figure the end of the line by a line break, but sometimes the line break is lost only after the second line. This second line contains the characters:
    These characters can all appear any number of times. I will know I'm at the end of the line when I hit a character that is not one of those three. What is the best way to look for this? Is there an already set method in the Java API?
    Thanks for all the help!

    There are solutions using regular expression, eg; you can split string once a time using minus char, whitespace or comma:
    String tokens[] = anyString.split("\\-|\\x20|,");
    More sophisticated expressions could be done to achieve results:
    String re = "^(.+)(\\-|\\x20|,)(.)(.*)$";
    Matcher m = Pattern.compile(re).matcher(anyString);
    if (m.matches()) {
    String
    before = m.group(1),
    delimiter = m.group(2),
    firstCharAfterDelimiter = m.group(3),
    suffix = m.group(4);
    Regards.

  • Which calendar is useful for an office? So that we can maintain one appointment calendar, yet anyone in the office who has an iphone can sync the info to their iphone.

    I work at an office that has an office calendar for all of our client appointments.  My boss is getting an iphone, he is terrible at using technology.  Which calendar could we use that would allow him (or anyone in the office with an iphone) to sync the office calendar to his iphone?  So, I'm looking for one calendar that multiple people could sync to.  Any advice?

    I also already deleted my phone number from iMessage on my MBP.

  • HT3275 "The external disk must be erased before it can be used for Time Machine backups because it has an incompatible filesystem." What if I don't want to erase the disk?

    I'm trying to use Time Machine on my Macbook (which is a year old) to back up onto a 1Tb external hard drive. I have 860 Gb free on the hard drive. But for some reason Time machine presents me with the statement above. How can I back-up my laptop without clearing out the data I already have on the hard drive?

    Time Machine must back up to a hard drive that has been formatted in Mac OS Extended (Journaled). Your drive is likely formatted in FAT 32.
    If you want to use the drive for Time Machine backups, you will have to erase it and reformat using Disk Utility on your Mac.
    First, move the files that you do not want to lose to another temporary location and test to make sure they are OK.
    Second, erase the drive that you want to use for Time Machine backups and format it for Mac OS Extended (Journaled).
    Third,  move the files back to the hard drive.  Test  to make sure they are OK. When you are sure that the files are safe, you can erase them from their former "temporary" location. (Although I do wonder how you are backing up these files).
    Time Machine will not touch the other files that you have on the hard drive.

  • Received notification that Your Apple ID is being used for iCloud on a device that I do not know

    I have received notification that my Apple ID is being used for iCloud's on a new iPod touch. I do not recognize the device. This is the 2nd notice the first time I changed our password. How do we remove this device.

    Change the password without using email authentication as discussed here: Apple ID: Changing your password in case the other person has access to your email account.  If you aren't able to do that, contact the Apple account security team for assistance: Apple ID: Contacting Apple for help with Apple ID account security.

  • My macbook says it has 108.3GB used for backups.  Why is that?  I'm running out of GB and would like to free some space up. Thanks. BTW this is my first mac.

    My Macbook pro keep running out of space.  I have my iPhoto library's on an external hard drive and I backup my mac to a separate hard drive.  But I noticed today that in my "about my mac" it says I am using over 108GB for backups!  What is that?  How do I fix it?  This is my first mac.
    Thanks so much for the help.
    Lisa

    If you have Time Machine enabled, then those are Time Machine snapshots. They will be deleted automatically if the space is needed. You can also do this:
    About Time Machine local snapshots
    Time Machine Snapshots
    Open the Terminal in the Utilities folder and enter or paste the appropriate command line. Press RETURN and enter your admin password when prompted. It will not be echoed. Press RETURN again.
         To turn them ON: sudo tmutil enablelocal
         To turn them OFF: sudo tmutil disablelocal
    Note that turning them OFF will also delete all existing snapshots.
    For more about snapshots see: OS X Mountain Lion- About local snapshots.

  • What is the best format to use for still photos in FCE that will produce the highest resolution?

    Hello,
    Can anyone recommend the best suggested format for photo stills in FCE that will provide the highest resolution and best quality output, to be broadcasted on a Standard Definition television network?
    Thanks,
    Susan Kayne

    Personally, I prefer uncompressed TIFF or PNG.  But many times it won't matter ... you'll be dropping the images into an SD Sequence, so they will lose resolution on output.
    -DH

  • Advice required for dealing with a DC that has exceeded the tombstone lifetime (ID 2042)

    I have a server (2003 R2 Standard) that appears to have had replication issues and is beyond the tombstone lifetime. The Primary DC holds all FSMO roles (Server 2008 R2 Standard) and this is the only other DC on the domain and this is on a single site.
    We are experiencing various problems on the domain over the last few days. (Users receive "The trust relationship between this workstation and primary domain failed." general logon problems on other pc's and member servers, Event ID 4)
    The 2003 DC is due to be demoted but I want to clean up the situation and need some assistance in going down the correct route.
    I think I should plan to
    repadmin /removelingeringobjects
    demote the server once the replication is functioning again.
    Is a valid option to just force demote the 2003 DC then clean up the metadata? I ask as I plan to demote that server anyway but Microsoft documentation seems to suggest this is a last resort.
    I tried to run the repadmin with the /advisory_mode switch but this failed with "Can't retrieve message string" errors but this may be down to my incorrect command use.
    Thanks in advance for any assistance.
    Techie247

    And that is a very real fly in the "metadata cleanup" ointment.  This means we're looking at a strategy of:
    1.) Fix any lingering objects.
    Either continue to hammer at that repadmin syntax or try using the repldiag tool.  Here are some helpful links.
    http://blogs.technet.com/b/robertbo/archive/2010/11/07/cleaning-lingering-objects-across-the-forest-with-repldiag-exe-part-2-of-4.aspx
    http://blogs.technet.com/b/glennl/archive/2007/07/26/clean-that-active-directory-forest-of-lingering-objects.aspx
    2.) Re-enable replication by setting the infamous registry value.
    http://technet.microsoft.com/en-us/library/cc757610(v=ws.10).aspx
    Here's a KB that covers the full process as well -
    http://support.microsoft.com/kb/2020053
    Obviously the key for you will to get past that lingering objects piece. Hopefully you can get that going with either repadmin or repldiag.  Good luck! 

Maybe you are looking for

  • How is SQLite used for windows phone 8.1 in Visual Studio2013

    Hi,         I'm developing app on Windows 8.1 currently. Can any one please help me with the steps to proceed so that I can create a database using SQLite for windows phone 8.1 through Visual Studio2013.

  • User Exit/BADI for Purchase Order and Purchase Requisitions

    HI, I have a requireent where i have to check the the user does not enter both Subitems and Over a Limit for a Service Purchase Requisition. Is there a User Exit or Badi that i can use where this information is availaible. also i have to check that r

  • USB 3.0 Network Adapter Problem (StartTech​)

    Hello- I periodically use a USB 3.0 Network adaptor for my Carbon X1 (It is the Startech USB31000S).  Our network policy is to disable WIFI when the adaptor is connected.  Frequently, when I disconnect the USB from the computer to move to a different

  • Interzone traffic

    G'day, I went through a couple of inter zone traffic related posts on the Solaris Zones Forum. From what I read (links below) traffic between zones utilizes internal path so far. There is an option to disable all the traffic between zones via reject

  • Dynamic web page

    can i conect adobe edge page with asp.net or can i make a database driven page using adobe edge? if can.. how it can be done?