Numeric characters

I have the names and I want to remove the space between them and convert them to digital characters. For example, Tony smith, I would like to remove the space between smith and Tony and convert it to digital characters.

Note:

Numeric or alphanumeric characters whatever.

Published by: varun March 17, 2011 09:02

Maybe something like:

SQL> select 'Tony Smith' str
  2  ,      translate(lower(replace('Tony Smith', chr(32))), 'abcdefghijklmnopqrstuvwxyz'
  3                                                        , '12345678901234567890123456'
  4                  ) nr
  5  from   dual; 

STR        NR
---------- ---------
Tony Smith 054593908

1 row selected.

?

Tags: Database

Similar Questions

  • The analysis of the non-numeric characters in a string

    Hello

    I am communicating a robot to LabVIEW (2013) via TCP/IP and sockets. The robot is the server, and LV is the customer.

    I start with the target data in this format (in a string):

    "[0 ~ 100 ~ 0] ~ [0.96593 ~-0.25882 ~ 0 ~ 0] ~ [1 ~ 0 ~ 0 ~ 0] ~ [150 ~ 50]."

    [X, Y, Z], [Q1, Q2, Q3, Q4], [C1, C4, C6, Cx], [TCPVel, OrientVel] except replacement ',' (comma) with a ' ~ ' (tilde) because I load the target data in a spreadsheet which is a comma-delimited file.

    In LV, I take this string, the analysis of the chain and split individual items. I then pulled the singular elements as unique, 32-bit of real numbers. I take each one and convert them individually to a string, concatenate them and send them to the robot. The robot decompresses these raw bytes individually and converts them to a target of robot (position in space).

    I train (BT) check if the user has sent a bad character (non-digital) in the target data. Example of this is:

    [- 50 ~-150 ~ 0] ~ [0.96593 ~-0 ] [B2has5D882 ~ 0 ~ 0] ~ [1 ~-1 ~ 0 ~ 0] ~ [150 ~ 50]

    Now in BT, when I'm scanning the chain, these bad character becomes the entire element to zero and everything else then to zero as well. See attachment for example screen similar.

    My question is, my VI, I can analyze all non-numeric characters (that are inside the parentheses and characters that are NOT a ' ~ ' (tilde))? In this way, I can always get this item numbers and do not have this element or other items turn to zero?

    Thanks in advance for any help!

    Sorry for the question of the test

    SM


  • How to allow the user to enter only alpha numeric characters in the text field?

    Hello

    Is it possible to restrict the user to enter only alpha numeric characters in the textfiled?

    Thank you

    Starting from the version 4.7, I don't see any how useful filter adapted to your needs.  Then why don't you override keyChar() like this:

    EditField eField = new EditField("Enter letters and digits only: ", "") {
        protected boolean keyChar(char ch, int status, int time) {
            if (CharacterUtilities.isLetter(ch) || CharacterUtilities.isDigit(ch) || (ch == Characters.BACKSPACE)) {
                return super.keyChar(ch, status, time);
            }
            return true;
        }
    };
    

    I have not tested this code, but you can give it a shot...

    You can add a manipulation (or super.keyChar...) for Characters.ENTER and Characters.ESCAPE, as well as anything else you be useful, such as the comma and the period.

    Hope this helps,

    Arkady.

    Edit: added Characters.BACKSPACE - you want to change, not you?

  • How to display the data, that contains non-numeric characters.

    Hello

    I have table t1 with column of type varchar2 below

    ID

    ------

    11151

    11412

    1113

    1 to 114

    11b 15

    111 6

    Now, I need to display the data, that contains non-numeric characters.

    Did you get the result like:

    STR

    ----------

    1 to 114

    11b 15

    111 6

    WITH t
         AS (SELECT '11151' str FROM DUAL
             UNION ALL
             SELECT '11412' FROM DUAL
             UNION ALL
             SELECT '1113' FROM DUAL
             UNION ALL
             SELECT '1a114' FROM DUAL
             UNION ALL
             SELECT '11b15' FROM DUAL
             UNION ALL
             SELECT '111c6' FROM DUAL)
    SELECT *
      FROM t
      where regexp_like(str,'[^[:digit:]]');
    

    See you soon,.

    Manik.

  • Return of the Non-numeric characters

    Hi all

    IM using Oracle 11 g 2. Here is my sample data and I want to search for the string has non-numeric characters in it.
    with t as
    (
    select '123' val from dual
    union
    select ' 123' val from dual
    union
    select '1123' val from dual
    union
    select 'A123' val from dual
    union
    select 'x 123' val from dual
    union
    select '#123' val from dual
    )
    select val from t
    where regexp_like (val, '[[:alpha:]|[:blank:]|#]')
    Query works perfectly for result value but would break if another string, say 123 @', with a special character comes. There is therefore no format specifier (as we [: alpha:], [: digit :]) to directly identify the non-digit character, including the space in a string?]) If not what is the round job for her?

    Thank you
    Vivek
    with t as
    (
    select '123' val from dual
    union
    select ' 123' val from dual
    union
    select '1123' val from dual
    union
    select 'A123' val from dual
    union
    select 'x 123' val from dual
    union
    select '#123' val from dual
    union
    select '@123' val from dual
    )
    select val
    from   t
    where  regexp_like (val, '[^[:digit:]]');
    

    must not specify a figure

  • Option profile "ICX: numeric characters.

    Hello

    When I put the value from under profile as user level option

    ICX: Digit = 10 000,00

    The FND_PROFILE function call. Return value('ICX_NUMERIC_CHARACTERS) '., ' wherever I think «,»

    Also, SQL query return the same value as the function call:
    SQL > SELECT PROFILE_OPTION_VALUE
    2 FROM FND_PROFILE_OPTION_VALUES
    3. WHERE PROFILE_OPTION_ID = 3532
    4 AND LEVEL_VALUE = 4970
    5 and level_id = 10004;

    PROFILE_OPTION_VALUE
    -------------------------------------
    .,


    Similarly, when

    ICX: Numeric characters = 10,000.00

    The FND_PROFILE function call. "" Return VALUE('ICX_NUMERIC_CHARACTERS) "," wherever I would expect ".,

    Also, SQL query return the same value as the function call:
    SQL > SELECT PROFILE_OPTION_VALUE
    2 FROM FND_PROFILE_OPTION_VALUES
    3. WHERE PROFILE_OPTION_ID = 3532
    4 AND LEVEL_VALUE = 4970
    5 and level_id = 10004;

    PROFILE_OPTION_VALUE
    -------------------------------------
    ,.

    Is this expected behavior?

    This shift is causing issues with our German users. They run a simultaneous program which submits a request for the child. Since they have the value of this option of profile defined as 10,000.00 and territory as the Germany, their request for the child ends with error with the message "ORA-01722: invalid number." When we changed the value of the option profile 10,000.00 and territory in the United Kingdom, same request completed normally.

    Your help/comments will be highly appreciated.

    Kind regards
    NK

    Salvation;

    What is the version of the EBS?

    Please see the paragraphs below:
    The digital fields when management profile Icx: numeric character = 10.000,00 [ID 452839.1]
    What is the setting and the profile Option ICX feature: digital characters? [167513.1 ID]

    See also:
    Report lack numeric characters given to 10,000.00 [858245.1 ID] ICX profile option

    Respect of
    HELIOS

  • Phones unlocking password box smart blackBerry. Keyboard allows only numeric characters.

    I choose aA which is at the top right, but this disappears 123 boxes and in the top right of the screen is displayed when you try to unlock the keyboard.  The 123 box does not turn off when the unlocking password box is displayed. Alphabetic characters in my password may not be seized at all from the table, only those digital.

    I can't unlock and therefore to use the phone.

    I removed the battery and restarted a couple of times without change.

    Ideas welcome!

    drmarkpenney wrote:

    The problem is only with the normal box saying "Enter PIN Code".

    There is your idea, he wants the PIN SIM lock code, it does NOT have a password, I promise you.

    If you do not know your PIN, call O2 and ask. It's NOT the same as a smart phone BlackBerry PIN (which is eight alphanumeric characters. He wants a digital code to four digits.

    Believe me. Summer is here.

  • RegEx request - non alpha numeric characters

    Hello

    On our system Oracle EBS users can paste data into the system and 'strange' characters are not caught in the trap, so they can stick in the forms from word for example and include non-standard characters. Sorry if this sounds vague.

    I need to find the non-alphanumeric characters in a table that are mounted 'break' a system that takes the data from Oracle and put some of them in an XML file. We do not have one problem with other valid characters are for example

    !" £$%^&*()_+-=[{]};:'@,<.>/?\|

    I know for example, a character that causes a problem is the character that MS Word uses to replace a dash.

    for example if I type:

    * This - only *.

    Password to:

    * It - that *.

    It's a character I can't type on my keyboard and an example of a character I'd like to be able to find by using SQL.

    There are probably others, but all I want to do is find characters "non-standard."

    I have a sample transaction ID, I know that contains the funny MS dashboard, so this SQL returns:
    SELECT pec.expenditure_comment
      FROM pa.pa_expenditure_comments pec
     WHERE REGEXP_LIKE (pec.expenditure_comment
                      , '(^ )|[^[:alnum:] &!"£$%^()_+=-{};:@#~,<.>/?\|]')
       AND pec.expenditure_item_id = 6445260
    However, it also returns the other folders that don't contain funny characters, so I don't think that it's working properly.

    That's why ask me for advice here. Any help would be appreciated.

    Thank you
  • Replacement of alpha-numeric characters using SQL only

    Hello

    I have a field with the following distribution of the alpha-numeric

    C84 CW66, GED54,

    How can I change the following format for

    Cw 66, 54, C 84 GOL

    only by using SQL commands and not to the help of PL/SQL procedures or function?

    Thank you.

    Hello

    Welcome to the forum!

    REGEXP_REPLACE ( str     -- or maybe INITCAP (str)
                , '([[:alpha:]])([[:digit:]])'
                , '\1''\2'
                )
    

    Returns a copy of the str string, with a single quote added after each letter (upper or lower case) which was initially followed immediately by a number.
    If you want to change the case at the same time, use INITCAP (str) as 1st REGEXP_REPLACE argument.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using. REGEXP_REPLACE works in Oracle 10.1 or more.
    See the FAQ forum {message identifier: = 9360002}

  • Sort of a system of numbering both Alpha and numeric characters

    I have a database of about 370 products we manufacture. The numbering system is 3 digit design followed by the character alpha code 1-6 letters. For example:

    014A6LP (for our company, that means that number 14, while the A6 refers to a particular size and the LP of the design is the type of product).

    014FAP (same design, different product type)

    014A2LPBX (again, same design, different product type)

    I tried to sort my table such as numbers and text. I tried to add custom formats that include leading zeros. I even tried to let go the zeros (even if I really need them). I don't like to work.

    The result I want is this:

    001A6LP

    002A6LP

    002FAP

    003A2FPBX

    003A6LP

    003NBF

    etc, etc.

    what I get instead is this: as you can see it my list starts with 012 instead of 001. As it continues, 100 comes before 010, etc.

    I look forward to your ideas and help.

    Thank you

    Josh

    Hi Josh,.

    You can paste your table in a post (as opposed to a screenshot)?  In this way we can try the actual values you have.

    SG

  • Regular expression to allow only numeric characters or spaces in the num field such

    Hi people

    Am Newbie Apex using 4.0.1 / Vista / Oracle XE and am trying to create a level validation element on a phone number field

    I want any combination of numbers and valid spaces with only the obvious condition that the field cannot be completely spaces.

    Can anyone help to suggest how to do because I'm really bad with something so simple that I have no exp prev reg expressions.

    Thank you, as always
    Peter

    Hello
    It's quite strange, I just tried your entry (without apostrophes) and it passed. Do you have you copied my reg exp (a ^ $ included) and pasted into the Expression of Validation 2 field validation with regular Expression of type? We must really work.

    Jirka

  • Normal characters Numeric Expression only

    Hi all

    I'm trying to select only the numeric characters only. However, this regexpression returns data which has also one - or alphabetic characters, such as 58-69-30-008 NWSE. I don't want to.

    I want just the lines containing ONLY numeric data.
    WHERE servloc like '%[0-9]%'
    Thanks for your help,

    John

    LPS says:
    Try this

    where regexp_like(servloc,'[0-9]');

    The foregoing will return any servloc that has at least one number. OP asked "just the numeric characters only. Regexp_like correct would be:

    where regexp_like(servloc,'^[0-9]+$');

    Or:

    where regexp_like(servloc,'^\d+$');

    SY.

  • Monospaced number characters in the Finder

    I'm on a MacBook Pro running Mac OS Sierra (upgrade on the spot, not a clean install) of the retina 2012. In the time that I've been using the new OS, I was finding myself annoyed by the way in which files are displayed in the Finder. It seems that the new police (I don't remember what is happening a few weeks ago on El Capitan) have set with spacing of the numeric characters, which causes the file list display the contents of the directory in a wavelike pattern which gives it a rather ugly appearance and becomes annoying when you try to scan through the list of files.

    I've read mention a lot about a new San Francisco monospaced font that I think made his debut this year, but why it is not implemented as a system font is disconcerting. Is it the way it is supposed to be, or something not properly get upgraded during the update process? If there is some sort of command terminal or utility for Finder using a correct fixed-width font, I'd like to hear it!

    FWIW, I do not believe any version of Mac OS x uses a fixed-width/spacing font in the Finder. Even if the numeric characters are spacing you would have the same problem with alphabetic characters mixed. And even if everything was at constant spacing there would be a ripple on the right because of the names of files of different length.

  • How to distinguish the figures and characters from a string

    I am looking for a simple way to do this or any built-in subVIs that can do this.

    I have 3 strings "1234c", "ab3dc". 'XYA', I want to identify those who have numbers and to reclaim all of the numbers. So an important step is to distinguish the character numeric and non-numeric characters. How can I do it in Labview with subVIs integrated?

    Thank you

    [0-9] is looking for a number, "+" makes the search for 1 or more of them (it is "greedy", so it will get as many as there are has).  I added a rope in addition to your list to show that the Pattern Match will match only the first instance of a number.  If there's a chance you have data as the last element that you need to run it in a loop.  Decimal string number can also work if a figure is the first character that it finds.

  • REGEXP_REPLACE - Exclude ONLY zeros if there is between a character and numeric value [1-9]

    Hi all

    I need your help in providing me the regular expression to exclude zeros only if it sits between the characters and a nonzero numerical value.

    For example:

    PL032 = > PL32

    GDP500 = > GDP500 (should remain is that the zeros are not between a character and not null)

    SOA008 = > SOA8

    GDP000 = > GDP0 (only exception: If that's all the 000 and then convert it 0)

    Thank you for your help in advance.

    Kind regards

    Emeline

    Hi, emeline,

    1000877 wrote:

    Hi all

    I need your help in providing me the regular expression to exclude zeros only if it sits between the characters and a nonzero numerical value.

    For example:

    -ONLINE PL32 PL032

    GDP500-online GDP500 (expected to remain is that the zeros are not between a character and not null)

    SOA008-ONLINE SOA8

    GDP000 => GDP0 (only exception: If that's all the 000 and then convert it 0)

    Are characters.  When you say "between characters and numeric value", do you mean "between non-numeric characters and numeric characters?

    If so:

    REGEXP_REPLACE (str,

    '(\D)0+(\d)'

    , « \1\2 »

    )

    \D (with a capital D) means any non-digit character.

    \d (with a small d) means any numeric characters, including 0.  Because regular expressions are greedy by default, "0 + 'match all ' 0' if some other number follows, but leave the last '0' (as you want) then there is not another number immediately after him."

Maybe you are looking for

  • Curious inscription

    When I tried to enter my serial number, he said I was a 3060 when I'm a Satellite 3070 and gave a number of model completely wrong for me. (My model numnber is PAS405E-B) Why is it not registered me right? (I suspect my purchase date was wrong - I pu

  • Computer change is saved to: in Control Panel, system, general

    Want to sell computers, but don't know how to change "computer registered to...» "in Control Panel, system, general.  Is there a way to change it without having to reinstall Windows XP?

  • Pavilion G6 2343er: slick video DD0R36LC050

    Hi all! Having a trouble with a cable video CE DD0R36LC050. You will have to replace another. Would like to ask what models of cables are compatible ws my laptop. I found not DD0R36LC000, DD0R36LC010, DD0R36LC030, DD0R36LC040 - are compatible with my

  • Why by exporting a 48x48px in png vector becomes a 49x49px file (.png transparency)?

    I exported from illustrator a vector in a PNG with transparency. A vector of 48 x 48 px becomes a PNG 49x49px! This capture is made by developers who have need of my file.

  • The CQ5110F upgrade

    I have the computer listed above, with the specifications listed here: http://www.OfficeDepot.com/a/products/494028/Compaq-Presario-CQ5110F-desktop-computer-with/ and I added this graphics card: http://www.amazon.com/PNY-NVIDIA-Quadro-Graphics-VCQFX5