Query only non numeric values in a column

How to query only non numeric values in a cloumn.
For example:
Table1 has a column1(col1)
Values:
Row Value
1 27376
2 47D99
3 83039
4 DKFI*
5 3J6
Query should retrieve only rows(2,4,5).
Thanks! for help
Murali

Version 2(PL/SQL) above is not clear enough, It can be tuned to the following:
-- Create a function
Create or replace function IsVARCHAR(pCol VARCHAR2) return VARCHAR2
AS
vNumber NUMBER := 0;
begin
  vNumber := to_number(pCol);
  RETURN NULL;
Exception
  When Others Then
    RETURN pCol;
End;
-- To See VARCHAR values (alpha-numeric) only!
SELECT col1 FROM tab1
WHERE IsVARCHAR(col1) IS NOT NULL;
-- To See NUMBER values only!
SELECT col1 FROM tab1
WHERE IsVARCHAR(col1) IS NULL;Versatility here with PL/SQL, but I personally like SQL versions.
Thx,
SriDHAR

Similar Messages

  • Script to replace non-numeric value of column to blank

    Hi
    I want to replace non-numeric value of column to blank. Can any one help me out.
    For example:
    column1
    234 kjnkj 12e
    555565asd44
    1232334343
    Now I want to that update cloumn with blank value which contains non-numeric value in it

    Try the following
    select translate(column1,translate(column1,' +-123456789',' '), ' ') b from dual;                                                                                                                                                                                                           

  • Select only non-numeric characters

    A
    $
    ^
    (78^*)5$#7
    )!@#$0-99
    _454*(&--0
    +@#$%564
    =123
    How select only non-numeric characters from above table?

    Nilesh Hole,Pune, India wrote:
    but i want a uniqe query.
    suppose table have n number of rows then how i will wirte a query.Not sure what you mean? Do you want to select a list of distinct non-numeric characters used in your table? Then:
    column "Distinct non-numeric chars" format a30
    with t as (
               select '!' a from dual union all
               select '@' from dual union all
               select '#' from dual union all
               select '$' from dual union all
               select '%' from dual union all
               select '^' from dual union all
               select '&' from dual union all
               select '*' from dual union all
               select '(78^*)5$#7' from dual union all
               select ')!@#$0-99' from dual union all
               select '_454*(&--0' from dual union all
               select '+@#$%564' from dual union all
               select '=123' from dual union all
               select '135790' from dual
    select  distinct substr(a,column_value,1) "Distinct non-numeric chars"
      from  (
             select  regexp_replace(a,'[[:digit:]]') a
               from  t
               where not regexp_like(a, '^[[:digit:]]+$')
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= length(a)
                       as sys.odcinumberlist
    Distinct non-numeric chars
    +
    =
    $
    Distinct non-numeric chars
    ^
    14 rows selected.
    SQL> SY.

  • Popup Key LOV, NULL and "Invalid numeric value undefined for column"

    Hello.
    I've created an item based on database column of NUMBER type and set the following properties:
    Display As = Popup Key LOV (Displays description, returns key value)
    List of values definition=select 'display_value' d, 1 r from dual
    Null display value=%
    Null return value=
    Display Null=Yes
    When I select "%" in the LOV and try to apply changes to database I get error:
    ORA-20001: Error in DML: p_rowid=1781, p_alt_rowid=N1, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value undefined for column N2
    Error Unable to process row of table TTT.
    If I set Display As = Select List, all works fine. But I need Popup Key LOV.
    Could anybody help me?
    I use Application Express 2.2.1.00.04

    Hi all,
    I did my homework and solved this issue. First I would like to thank Patrick Wolf for the invaluable help he gives out on thread Re: Null value handling in LOVs The code presented here is just a minor edit to his code, but an essential one when dealing with Popup Key LOV items.
    Here's what I did:
    1. Create an Application Process.
    Name: RemoveNulls
    Sequence: 0
    Point: On Submit: After Page Submission - Before Computations and Validations
    Process Text:
    BEGIN
        FOR rItem IN
          ( SELECT ITEM_NAME
              FROM APEX_APPLICATION_PAGE_ITEMS
             WHERE APPLICATION_ID   = TO_NUMBER(:APP_ID)
               AND PAGE_ID          IN (TO_NUMBER(:APP_PAGE_ID), 0)
               AND LOV_DISPLAY_NULL = 'Yes'
               AND LOV_DEFINITION   IS NOT NULL
               AND LOV_NULL_VALUE   IS NULL
        LOOP
            IF (V(rItem.ITEM_NAME) = '%null' || '%' OR V(rItem.ITEM_NAME) = 'undefined')
            THEN
                Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
            END IF;
        END LOOP;
    END;Error Message: #SQLERRM#Condition: None
    2. You should be able to submit a Popup Key LOV with a NULL value now.
    Once again, THANKS, Patrick! You rock! I'm seriously thinking of trying ApexLib now :)
    Georger

  • Non numeric value in numeric field giving error

    Hi All
    I am using BAPI for creating sales order. If user is giving non numeric value in Quantity field it is giving error. Because quantity field data type is Double.
    Please Help.
    Thanks
    Raktim

    Hi Banerjee,
                 Create a String/int/long Context variable and point it to UI Input element.Do the validation  for correct input value. once the validation is succesful assign that value to RFC BigDecimal variable by Explicit casting.
    Hope this might solve your problem .
    Thanks
    Madhan

  • How to check non-numeric value in a field

    Hi all,
    I have a field 'MVALUE'. HOw can I check if I have a non-numeric value in my field. Let us say if I have a value '<25' in this field. How can I check if the value in this field is non-numeric. The field MVALUE is of CHAR datatype.
    Please help. Waiting.........

    Might have to add a space in the string...
    if not mvalue co ' 0123456789'.
    * error
    endif.
    if you allow decimals and commas...
    if not mvalue co ' .,0123456789'.
    * error
    endif.

  • Non-numeric values in analog I/O points

    I have a system with a FP-3000 controller and a series of TC-120 and RLY-420 modules. At various times I am receiving erros for non-numeric values in some of the analog I/O points. The value, as stated by Ni-FIBUS is "-1.#IND".
    Does any one know what this is? Also once this value appears, It is impossible to get rid of it. The function must be completely deleted and re made from scratch.

    Some general suggestions:
    1. Settings of Function Blocks do not match the real input values, such as type mismatch. You need to verify the value data and type.
    2. Invalid Scaling settings, the units of parameters between connecting function blocks may not match. Please check the block input and output.

  • Retrieving numeric values of a column from another table..

    Hi there, so i have the following query that returns a label and a value from a database table:
    select key_field,value_field from table1 where some_id = 'id1' and key_field is not null;
    This will return a result in which the key_field may or may not be numeric, which is fine:
    key_field | value_field
    2 | street
    6 | dog
    car | mazda
    5 | tea
    1 | unknown
    I have another table table_num_vals where the value for those numeric fields are stored:
    key_field | display_field
    2 | address
    6 | animal
    5 | drink
    I want to be able to return the non-numeric fields as they were, all numeric fields translated if it can be found, and if not then leave the original number, desired result:
    key_field  | value_field
    address | street
    animal | dog
    car | mazda
    drink | tea
    1 | unknown
    I tried doing the following:
    select display_field from table_num_vals where key_field in (
        with numericCol as (
            select key_field from table1 where some_id = 'id1' and key_field is not null;
        ) select case when regexp_like(key_field,'^[[:digit:]]') then key_field else '' end from numericCol
    It gives me the labels for the ids that it can find.. (address, animal, drink) but then I can't seem to put it all together with the original query.. could someone please help?
    Thanks in advance,

    Yes you are right .. Thank you so much
    I let it work using
    select student_ID, Level from Student where Level ='Graduate'
    But when i run different kind of form to Graduate_Student table and try to create a new row , I cant see the Student_ID  !  I see it only if I use Form using SQL but this one doesn't add/delete/update record.
    I am new to oracle apex, sorry for that.

  • ALV WebDynpro Hierarchy -Setting non-numeric values in the header level row

    Hi Experts,
    When setting up an ALV table as a table hierarchy the standard ALV settings only seem to allow for numeric values to be displayed in the higher hierarchy levels. Is there a way to also set the values for some non-numeric columns into these higher-level rows - programmatically or through the ALV Settings?
    Example: I have delivery item level data in my context and the delivery number as a hierarchy column. Some columns in my context however actually come from the delivery header e.g. delivery block, delivery priority, ship-to etc and I would like to display these in the collapsed header rows of the delivery number.
    It seems obvious to me that this should be doable otherwise if you are looking at at a list of hundreds of deliveries and all you see besides the delivery number is numeric data such as sums & totals, it's kind of hard to know which delivery you might want to expand the sub-level for.
    Please help,
    Peter

    Hi,
    Even we have faced the same issue.
    In ALV hierarchy, we cannot display data at header items/levels. this is a constraint in ALV. You can achieve the same usign TABLE UI element.

  • Non-Numeric Values in Appraisal Template

    All,
    I wanted to know if these are possible
    1) How we can make the columns to accept the non-numeric characters. Currently it only accepts the numeric.
    2) How can we make the columns blank - Current it always shows "0.0" - for eg.
    Please see the screen shot here
    http://img600.imageshack.us/img600/8420/appraisal.jpg
    Aneez

    >
    Hire to Retire GT Project wrote:
    > All,
    >
    > I wanted to know if these are possible
    >
    > 1) How we can make the columns to accept the non-numeric characters. Currently it only accepts the numeric.
    >
    > 2) How can we make the columns blank - Current it always shows "0.0" - for eg.
    >
    > Please see the screen shot here
    >
    > http://img600.imageshack.us/img600/8420/appraisal.jpg
    >
    >
    > Aneez
    Hi Aneez,
    for free text input.
    I control by making the column = "no entry", but than enabling the notes field.  The other advantage to the notes field is you can easily control the length of the text box in the config. 
    for value input you just need to configure the value class.

  • Report results displays only (*), no numeric values.

    Dear all,
    The report result only displays asterick (*), no numeric values. But the field in the result thus has numbers which can be seen in display at the top in the excel sheet. why?
    Do i need to make any changes in Query properties or something else??
    Please advise.

    Hi,
    You should be trying to work to different units of measure or different currency. If you do any calculation with two values which has different unit then the result will be so.
    use NODIM() of the keyfigure and do the calculation. create a formula and add NODIM to keyfigure, then you should be able to see values but you will not get the unit along with value.
    Else you should go for conversion of units to single one and then you can get both values and units.
    Hope this helps
    Regards
    Akhan

  • Display only non zero values  in rows

    Hi Friends,
                      I have a key figure "X', and it is split over 12 months (aging buckets), by using formula, but I want to filter values with zero values ie I want to display all non zer values only.
    This looks like
    Apr        100   
    May       200   
    Jun         200 
    Jul            0   
    Aug
    Sep
    Oct
    Nov
    Dec
    Jan
    Feb
    Mar
    In the above example I dont want to display 'Jul' at all, and the rest should be displayed, Wherein all the above are formula(Apr, May,......)
    Is it possible ?
    If so , what is method.
    I tried supress in query properties , Like supress zeros, but it is not working.
    Suggest me
    Points assured.
    Sanjay

    Dear Gupta,
                       In my case condition is not working, as I want to display values that ae non zeros. If I am using conditions, none of the values are displayed like Apr, May,Jun, Jul, etc........, I want to display all values except Jul as that values is zero as per my example.
    Please suggest
    Sanjay.

  • How to 'Only' allow Numeric value in the Edit Box in AcroDialogs

    Hi all,
    I've create an AcroDialog wizard, I need to allow onlu numeric values in the Edit Box. Can someone please help me with this validation?
    Regards,
    Chris

    There isn't a keystroke event for custom JavaScript dialogs, or any proper interactive events for the fields.  You can validate fields when the user presses OK, and you can test fields when the user changes focus by setting the "Action" property for the field.  But the only practical way to restrict user input to numbers is to use George's suggestion.  There is a number property for the fields but it has an undesirable side affect and I never use it.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Updating a DB table with only non-empty values of a work area

    Hi everybody,
    Is that possible in ABAP to update a table in the database with a work area, but only with non-empty values of this work area?
    Example:
    data: ls_custom type ZCUSTOMERS_0.
    ls_custom-CUSTOMER = '20'.
    ls_custom-LASTNAME = 'MyName'.
    ls_custom-FIRSTNAME = ' '.
    ls_custom-CURRENCY = ' '.
    update ZCUSTOMERS_0 from ls_custom.  *" I want that the update clause don't do the update with FIRSTNAME  and CURRENCY fields because they have empty values*
    If it's possible, how to do it?
    Thanks & regards,
    Abdel

    Total Questions:  81 (66 unresolved)
    Hi,
    To my understanding you mean if the database table has values
    customer         20
    lastname          somename
    firstname         firstname
    currency          INR
    so now after this
    data: ls_custom type ZCUSTOMERS_0.
    ls_custom-CUSTOMER = '20'.
    ls_custom-LASTNAME = 'MyName'.
    ls_custom-FIRSTNAME = ' '.
    ls_custom-CURRENCY = ' '.
    update ZCUSTOMERS_0 from ls_custom.
    you want the result as
    customer         20
    lastname          Myname
    firstname         firstname
    currency          INR
    Is it so? Then Normal update
    data: ls_custom type ZCUSTOMERS_0.
    ls_custom-CUSTOMER = '20'.
    ls_custom-LASTNAME = 'MyName'.
    update ZCUSTOMERS_0 from ls_custom.
    would do that.
    Thanks,
    Sri.

  • Add numeric value to Table Column

    Hello,
    my problem:
    I have a VO with a numeric attribute (Sal). This VO is shows in a table in a JSF Page.
    I need to add to the column value a numeric value.
    I try with #{row.bindings.Sal.attributeValue*2} or #{row.Sal+2} or #{row.Sal.inputValue+2} But I get an error.
    Can someone help me ?
    Thank You
    JDev 11.1.3

    Hi,
    an option would be to use a transient attribute in the VO to compute the maths or to populate the column field from a managed bean. You can point the column field to a managed bean property (say sumSal). In this method getSumSal() you
    1. Use ELContext, ValueExpression, and ExpressionFactory to resolve the #{row} reference (you can cast it to oracle.jbo.domain.Row
    2. call row.get("attribute_name") to access the field value
    3. Perform the computation and return the value to display in the table
    Note that using a transient attribute may be easier to achieve and easier to reuse in other usages of the VO. However, you have to options
    Frank

Maybe you are looking for

  • Help with my ipad and vodafone

    hello all hope someone can help me as im stuck. my ipad 2 broke about 3 weeks ago so took it to vodafone and they said they would try and fix it but could not so they sent it to apple last week had an email saying it was fixed and would be ready toda

  • Screen share facility

    I have owned a Mac Mini for some months and it is used solely for providing iTunes to my hi-fi system. I have recently purchased a new iMac and was expecting the two Macs to 'recognise' each other in my wireless set-up. This is not happening. What do

  • Where can I get iPlanet Directory Server 4.1.3 for Linux

    Hello everyone, we are developing IMPS solution. but we need to support legacy system. How can we get a iPlanet Directory Server 4.1.3 for Linux for evaluation? Many thanks Billiken Xie

  • IE 8 problem with CSS image rollover

    The tabbed navigation on the top  right of this page is created using CSS.  It is working perfectly on my  system:  PC with Firefox 3, IE6 and IE7.    With IE8, the tab navigation does not work at all. Any suggestions? http://www.eagleornamentalironw

  • Uninstalled apps, preference files still there.

    I have uninstalled the app twinkle by tapulous. However I've found out that the uninstalled apps settings are not uninstalled because I tried reinstalling twinkle and the settings are not reset. It still have the previous settings. Is there a way to