First letter in the string

Hi,
I have a string "International Business Machine", but I want to refer as IBM (not as International Business Machine), So how do I get this value from my string. Is there any standard procedure/function available..
I want OCP from the strin 'Oracle Certified Professional'
Thanks,
Gladson

Hello,
If you happen to be on Oracle 10g you could use regular expressions. This extracts all capital letters regardless of location:
SELECT REGEXP_REPLACE('Oracle Certified Professional', '[^A-Z]') from dual
--> OCP
If you are pre-10g there are a bunch of ways to do this, I quite like this approach:
SELECT REPLACE(TRANSLATE('Oracle Certified Professional', LOWER('Oracle Certified Professional'), 'x'), 'x') from dual;
--> OCP
If your goal is to extract initial letters regardless of case you could use INITCAP around your source string.
The real answer depends on what your specification is but this should at least get you thinking about it.
Good Luck.

Similar Messages

  • Formula for getting first letter of the string

    Post Author: jmmj
    CA Forum: Formula
    Hi, I have a problem to get the first letter of the string.  I need to compare first letter first and then change the rest of string to number as unit cost for calculation.  For example, I have string K100, C200,...     if first letter = K then 0 else if first letter = C then tonumber200..... I use CRXI, any assistance will be appreciate.jmmj 

    Post Author: jmmj
    CA Forum: Formula
    It works, thanks Kai!But when I tried to print the report, there are multiple lines shown same invoice number but different unit price. My formular is: IF {OEINPR3.COINTYPE} = 2 OR CCur({OEINPR3.LINETYPE}) = 1  //line type 1 for item,  2 for misc. charge THEN(    IF {OEINPR3.COIN}[1] = "K" OR {OEINPR3.COIN}[1] = "N"  THEN        TONUMBER(MID({OEINPR3.COIN},2,20))    ELSE 0)ELSE      2 //for testing only The result I have: Line#    Inv#    unitprice    total1          IN001    0.00     10.00            IN001   10.00     10.00  2          IN002    0.00     20.00             IN002    20.00     20.00.......The second line of each invoice is correct. How can I print just one line for each invoice which is correct? Thanks!jmmj  

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • Remove first letter in a string

    how to remove the first letter in a string ?
    example
    string : hkitty
    result : kitty

    thank you peter... I was just dumb enough to post
    this question... Thank you so much again...Fine with me, you're welcome

  • I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts.

    I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts. The persons name is not in my contacts and I would like to delete it from popping up. Do you know how I can do this?

    The Mail app on the iPad/iPhone/iPod Touch does have an option to clear previous recipients. You can learn to live with it.  But if you want to get rid of it, the only way to remove these cached email addresses from the Mail application is restoring the iPhone/iPod Touch as a new phone/iPod.  If you restore from backup, the cache is also restored.
    This article shows you the screens you will see during the restore:  http://support.apple.com/kb/HT1414

  • How do I delete an email address from the dropdown that appears after I type the first letter of the recipiants address in the To: bar.

    When I open compose and type the first letter of the recipients address in the To: bar a dropdown appears with a listing of the email addresses I have sent messages to in the past as well as addresses of my contacts list.
    How do I delete an address from this dropdown?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Gavin Lawrie wrote:
    Once it had been established that the iWork rewrite had resulted in some features being lost and others broken, and once Apple had acknowledged the concerns* and suggested they are working on fixes**, I'm not sure what else there is to achieve.
    You are writing that in the perspective of having read about it here already. Repeated often enough that you encountered it somewhere in the posts.
    Users are flooding in here and don't know any of this. Of course we have to repeat everything endlessly.
    Because I like to give precise, understandable and workable answers to repeated questions, and Apple doesn't allow sticky posts here, I created a separate forum which users can consult to look up real answers, and contribute for themselves if they have something valuable to add:
    http://www.freeforum101.com/iworktipsntrick/
    There is a section purely devoted to Pages 5. Add whatever answers you feel will lighten the problems of Apple's 'upgrades'.
    Peter
    * Where have they acknowledged anything?
    ** They have barely anything listed, compared to the massive list of deleted features, and nothing but an extraordinarily long time frame considering they created the problems here and now. Apple has not said they will do anything at all about fixing the real issues, the biggest of which is that the new iWork apps break virtually all the work of existing users.

  • How can I get rid of the drop down suggestion box that appears as soon as I type the first letter in the address box?  Runnung 7.1.2

    How can I get rid of the drop down suggestion box that appears as soon as I type the first letter in the address box?  Runnung 7.1.2

    Writelady,
    I do not know of any such option. I don't think that it is even possible at this time, however it doesn't mean that maybe sometime in the future Apple or someone else will make a way to do such as your request.
    I do however think that you should let Apple know your opinion if you have not done such yet. You can give them product feedback at the following link. https://www.apple.com/feedback/safari.html
    I hope that this helps,
    -Weston

  • Pagnation by the first letter of the last name

    Hello,
    I have a report that is Grouped by Cities and then Last Name.  So New York is the city and then all the customers are listed below in Ascending order starting with the first customer who last name begins with the letter A and continues thru to Z and then the next City Starts with it's customers listed A thru Z.
    What I need now is to have the report put the customers on a new page when the first letter of the last name changes.  So New York will have it's cutomers with last names that start with A on page 1 and end on page 2 and New York customers with last names that start with B will start on page 3 and end on 5 and so on.  How do I achieve this?
    Thanks,
    Heather

    So if you have a last name field, and the names are in the detail section simply do this:
    1 - Go to the section expert for the detail section.
    2 - Click on the X-2 button to the right of New Page Before
    3 - In the formula editor use the following (with your last name field instead of my generic fieldname):
      not onfirstrecord;
      LEFT (, 1) <> PREVIOUS (LEFT(, 1))
    4 - Save & close the formula and OK out of the section expert.

  • I deleted a specific website from the "History" and used "forget this site" but it still shows up when I type the first letter of the site. How do I delete it?

    I am not computer savvy. I don't want to clear all my history, just one specific site. I deleted it, its cookies, passwords and everything and when I type the first letter of the website in, it shows up as one of the options for websites. I need to delete it, but how?

    Maybe these will help?
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *[[Remove websites from the Awesome Bar suggestions]]
    It's possible the website is in your bookmarks and when you type in some letters in the Location Bar that match that bookmark, it is coming up from there. See [[Search your bookmarks, history and tabs with the Awesome Bar]] for details on changing your Location Bar settings in your [[Options Window - Privacy panel|privacy settings]].

  • In Pages, when I hit the return button, the first letter on the new line is not capitalises. How do I get it to capitalise automatically?

    In Pages, when I hit the return button, the first letter on the new line is not capitalises. How do I get it to capitalise automatically?

    Right click the Back button and choose the page you want to go to from the list.
    '''N.B.''' I noticed that your Flash installation is out of date which exposes your system to attack. See: http://www.adobe.com/support/security/bulletins/apsb11-18.html<br><br>
    Update via http://get.adobe.com/flashplayer/

  • I have an iPad 2 with iworks, in pages and keynote I noticed it cuts the first letter on the right when I open an imported doc or ppt or even paste text from an email. I type in Hebrew (right to left language).

    How to solve?pages and keynote cut the first letter when opening an imported file from doc or ppt or even when pasting text to a new pages document.
    I write in Hebrew, which is a right to left language.
    Never got a warning that this apps do not work In my language. They are available in my country's AppStore and that was the reason I bought the iPad.
    Thank you,
    Diego

    All iWork apps, both for iOS and OS X, have always had bugs that make them unsuitable for RTL scripts for most purposes.  The only solution is to use something else.
    Also you can tell Apple you views here:
    http://www.apple.com/feedback/pages_ipad.html

  • HT3669 Latest Mac OS Update Driver for Canon 9500 Pro causes text lines all to be printed over the first letter of the line?

    Anyone know how I can 'fix' the Mac OS printer driver for the Canon 9500 Pro - all my text lines end up with the whole line being printed over the first character of the line of text when printing PDFs. It has ruined a lot of work.

    I'd try this:
    Delete the current printer (reset the print system) Mac OS X: How to reset the printing system
    Delete all other Canon software and utilities from your computer.
    Do a factory reset on your printer
    Use Software Update to download the driver from Apple.
    Don't reinstall any other Canon Utilities.
    Make sure you don't have something mechanical stopping the paper from advancing.
    If the problem is really the driver, then you could look in Gutenprint for a different driver. Gutenprint for Mac OS X

  • Why do I get a period when I type the first letter in the search box

    Every time I type a letter in the search box to start a search I get a period. If I leave it there Firefox will not give any returns on the search. This not a huge problem, but it is pain to have to remove it every time

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do I stop the google search remembering what places I have been when I type in a letter. I don't really want all the options for that letter showing up when I type the first letter of the search if I am using the computer with someone else

    see above

    Hi,
    The people who answer questions here, for the most part, are other Firefox users volunteering their time (like me), not Mozilla employees or Firefox developers.
    If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues.
    Wrong place to try.
    I am sorry but Firefox 29 / Australis Development, and design policy decisions are again off topic on this forum. (We did initially temporarily suspend that forum policy so that people had a chance to say something)
    I am sorry but we are only fellow users of Firefox there are no Developers here to see or answer these questions. It only diverts attention and effort from trying to help users with problems.
    Please See for example a long recently closed thread.
    * ''The I-do-not-like-Firefox-29-layout topic'' [/questions/998106]
    That thread includes
    *A quote of a developer's comment,
    * Suggestions of where you may discuss this, or post feedback
    *Helpful information for those with problems from the Firefox 29 changes
    * An extract of current forum rules
    If you need help and wish to continue using the current Release of Firefox please post another question making that clear and we will do our best to help
    If you post again it would help to know the exact message you got and possibly a screenshot (Forum software does not permit screen shots on the first post but you could link to a site with the screenshot on)
    I will close this thread as off topic.

Maybe you are looking for

  • Performance testing of servlets / beans / jsp ?

    Hi. I'd like to performance test my applications, anyone have a clue on what software to use? I use Fort� for Java CE 3 as the IDE and TomCat 3.23 as the servlet / jsp container. Hopefully there are some opensource tools to use for this? Regards, Chr

  • How do I set the desktop wallpaper with an image in aperture 3?

    Sorry for the silly question, but I can't find how to set my desktop wallpaper with an image in aperture 3. It was simple when using Iphoto, but I can't find the method in aperture. Thanks, Dale.

  • Multiple cc's problem

    Very perplexing.  I recieved an email from someone that included 8 other recipeints. I attempted to "Reply All" and when attempting to Send, kept getting a message saying that my reply could not be sent using the iCloud mail server.  If I eliminated

  • Imported photos from removable drive and only show on that drive

    I was attemping to copy all my photos to my laptop using PSE8. Some how instead of having my catalogue on C drive I have it on the removable drive. So the files won't import to C drive cause it says I already have them they don't show in the organize

  • Is there any discount on iPad's for teachers?

    I was told that our Kindergartens can use an iPad next year for our entrance assessments.  At the Apple store, I was told that teachers only receive a discount on MacBooks.  I could be tax-exempt, but only if the district was buying it, which the dis