How to Check weather in Chracter COlumn all value is numeric?

Hi ,
I am using Oracle 9i ,
I have column A with varchar2 datatype
with numerica value like
123454747
ABCD123
I would like to select only those rows wich having numerica value only.
pls suggest some query
UG

Hi to get the columns with only numeric character
sql>select <column-name> from <table-name> where length(TRANSLATE(<column-name>,'*ABCDEFGHIJKLMNOPQRSTUVWXYZ','*'))=length(<column-name>)example
sql>create table test4(col1 varchar2(30));
sql> insert into test4 values('123454747');
sql> insert into test4 values('A123');
sql>insert into test4 values('AEF45DF');
sql>insert into test4 values('EF45DF');
sql>select * from test4
col1
123454747
ABCD123
AEF45DF
EF45DF
sql>select col1 from test4 where length(TRANSLATE(upper(COL1),'*ABCDEFGHIJKLMNOPQRSTUVWXYZ','*'))=length(col1);
col1
123454747Edited by: oracle_for_dude on Jun 11, 2009 12:50 PM

Similar Messages

  • How to check weather a material created is active or not

    Dear Friends
    1    How to check weather a material created is active or not.
    2  MIGO standard document has a check button, can we have similar check button in other documents like Purchase requisition.
    3   In case of material valuation is Standard (Price control), the costing is done on the basis of the Standard Price or actual cost of the raw material.
    I will be thankful for your advice.
    Sanjeev

    1 How to check weather a material created is active or not.
    There is a Blue "i" button for the Material, pls click that it will show you the current status..
    2 MIGO standard document has a check button, can we have similar check button in other documents like Purchase requisition.
    for PR you can see the check button( CtrlShiftF3) beside personal settings

  • How to check weather a queue is having any corruption.

    Hi,
    Can any bodu let me know how to check weather a queue is having corruption or not.
    Thanks,
    Aditya.

    these are the contentents of the xml file
    <?xml     version="1.0"?>
    <!DOCTYPE exceptioninfo [
         <!ELEMENT exceptioninfo (exception+) >
         <!ELEMENT exception (expname,messagecode,loggingtype,handlerclass) >
         <!ELEMENT expname (#PCDATA)>
         <!ELEMENT messagecode (#PCDATA)>
         <!ELEMENT loggingtype (#PCDATA)>
         <!ELEMENT handlerclass (#PCDATA)>
         ]>
    <exceptioninfo>
         <exception >
              <expname>NoAreasFoundException</expname>
              <messagecode>expError.noAreasFound</messagecode>
              <loggingtype>nologging</loggingtype>
              <handlerclass>Handler1</handlerclass>
         </exception>
         <exception>
              <expname>ServiceActiveAtStoresException</expname>
              <messagecode>expError.serviceActiveAtStores</messagecode>
         <loggingtype>nologging</loggingtype>
              <handlerclass>Handler2</handlerclass>
         </exception>
         <exception>
              <expname>UniqueConstraintException</expname>
              <messagecode>expError.uniqueconstraint</messagecode>
              <loggingtype>nologging</loggingtype>
              <handlerclass>Handler3</handlerclass>
         </exception>
    </exceptioninfo>
    In this file exception is a node which is having some child nodes like <messagecode>...... now within my java program i am going to parse the given xml file there i am going to check what are the nodes which are having child nodes using hasChildNodes() method which is there in org.w3c.dom.Node this method will returns true if there are any childNodes for the node if not this will return false but when i am trying to use in my program for every node this method is returning false
    can u help me now
    Thanks
    Rajesh

  • How to check weather my i phone is officially unlock of not

    Hi everyone
    Recently i got iphone 3g , but im not sure how to check weather its officially unlock or not. So that i should upgrade the os with locking it.
    Serial no 5K9098AKY7K
    Model MB496X
    IMEI 01 180900 090330 3
    Plz help me out

    Look i bought it from open market in pakistan
    Then there is no way to confirm that your phone was officially unlocked. Buying from a non-official source, especially an "open market", means you're at the mercy of the seller as to the accuracy of the phone's status. Based on postings here, most of these phones have been hacked. You'll find out for sure though if you update to 3.1.3.

  • HOw to check weather flash player is installed or not in Nokia ?

    How to check weather flash player is installed or not in
    Nokia ? I had created some flash file , i need to install in Nokia
    mobile .If there is no flash player how it will detect? if it is
    installed then how it will detect.
    Chirag

    Did you see the list of supported devices?
    http://www.adobe.com/devnet/devices/nokia.html
    http://www.adobe.com/devnet/devices/nokia_s60.html
    http://www.adobe.com/devnet/devices/nokia_s40.html
    http://www.adobe.com/mobile/supported_devices/

  • How to check weather oracle db is started or not and how to start at oracle

    Hi
    could u please tell me how to check weather database is started or not
    and also how to start . (on unix and windows)
    waiting for ur reply.
    rajendra

    Hi rajendra,
    You can use the following command at Unix/Aix operating system.
    login into unix/aix operating system
    & run the following command.
    sqlplus "connect /as sysdba"
    you come in sql prompt
    & than run the following query
    sql>select status from v$instance;
    In windos you can check DB status using MMC.
    if you have any query than message me freely.
    Karan
    Edited by: karan Singh on Jun 24, 2008 5:10 PM
    Edited by: karan Singh on Jun 24, 2008 5:12 PM

  • How to check whether a field contains at least one numeric value

    how to check whether a field contains at least one numeric value..

    Hi,
    I hope that this code will works.
    constants:
       c_digit_grp        TYPE char11         VALUE '0123456789',        " Digit group
    * Data Declaration
    data :
      str   type string.
    * if you want check entire string and pass entire string
    if  str CA c_digit_grp.
    * write your logic ---this block will execute atleast one numeric value exists in the string
    Endif.
    Regards
    Bhupal Reddy

  • How to check weather BI Objectu2019s are imported and exported

    Hi to all,
    Some one has created INFOCUBE, DSO, DTP, transformation.
    My question is how I will check it, weather Objectu2019s   are imported and exported or not.
    How   to check under which request  number it have   been saved.
    Please can any one tell the step for that?
    I SHALL BE THANKFULL TO YOU FOR THIS.
    Regards
    Pavneet Rana

    Hello Pavneet,
    If you goto trans SE09/SE10--> Enter your User ID or * under user & then click on Display.
    You will be able to see all the TR's & if you drill it, you will be able to see all the objects collected under that TR.
    Hope its helps!
    Regards,
    Pavan

  • How to check weather a remote port is open or closed by a firewall

    Hi,
    Need to check weather a remote port is open or closed by a firewall. can i use Java Socket class to do that?
    Is there any proper way?

    In general, there is no way to determine anything about the status of a firewall from the outside (unless you know one is running and you want to verify it's functioning correctly).
    When trying to connect to a socket, you might get a time-out, which means either the firewall is silently dropping packets or the server is down or too busy or that there is a network problem. Or your connection might be refused, which means either the firewall has denied your request or the server isn't listening on the port you specified.
    In most cases, you should only be interested in successful connections and not try to guess too much as to the cause of unsuccessful ones.

  • How to check a parameter for legitimate blank value?

    Hi,
    I have a parameter with a drop down for a standard field from table BSEG. There are 3 possible values in the drop down, i.e. blank, 1, or, C.
    If the user enters '1' or 'C' there is no problem I can use this value in my code, i.e. I can select from BSEG where this value is a '1' or a 'C'.
    How can I differentiate between an initial value in the parameter and a ' ', i.e. if the user doesn't select a value in this parameter the I need to get all BSEG records, but if the user selects ' ' for this parameter I need to get all values from BSEG where this field = ' '.

    Hi,
    Use the below code.
    parameters: p_list as listbox visible length 20.
    initialization.
    type-pools vrm.
    data: v_id type vrm_id,
          i_list type vrm_values,
          wa_list like line of i_list.
    v_id = 'P_LIST'.
    wa_list-key = '1'.
    wa_list-text = '1'.
    append wa_list to i_list.
    wa_list-key = 'C'.
    wa_list-text = 'C'.
    append wa_list to i_list.
    wa_list-key = ''.
    wa_list-text = ''.
    append wa_list to i_list.
    *p_list = '3'.  "this is to set the default value of the list box.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id                    = v_id
        values                = i_list
    EXCEPTIONS
       ID_ILLEGAL_NAME       = 1
       OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    if not p_list is initial.
    select * from BSEG into table itab where field = p_list.
    else.
    select * from BSEG into table itab where field is initial.
    endif.

  • How to check if a Site Column is being used before deleting

    Hi All,
    Before deleting a SharePoint Online site column I would like to check to see if it is being used by any list or library. I know how to do this when the site is on
    premise using a PowerShell script.
    $web
    = Get-SPWeb
    http://”sitecollectionurl”
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    but I am having problems doing it on a SharePoint Online site. I know how to connect to the site, but I can not find any information on getting the field details,
    like above.
    if ((Get-ModuleMicrosoft.Online.SharePoint.PowerShell).Count
    -eq0) {
    Import-Module
    Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
    $username
    = "[email protected]"
    $url
    = "https://mySite.sharepoint.com/sites/Dev"
    Write-Host
    "Connecting to SharePoint Online, URL = $url"
    try
    Connect-SPOService
    -Url $url /
    -credential $username
    Write-Host "Successfully connected.."
    -ForegroundColor Green
    $web =
    Get-SPOSite -Identity
    https://mySite.sharepoint.com/sites/Team1
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    =
    $web.Fields[“Page Content”]
    catch
    Write-Error "Failed to connect to
    $url - check the credentials and URL!"
    $_
    Write-Host
    "Disconnecting from SharePoint Online, URL =
    $url"
    Disconnect-SPOService
    Write-Host
    "Successfully disconnected.."
    -ForegroundColor Green
    Does any know what I am doing wrong, or does anyone have a script examples.
    Many thanks
    Colin

    Hi Colin,
    Unfortunately the Get-SPOSite doesn't return a fully fledged SPWeb object like you're used to in On-Prem PowerShell.
    The only way to get at particular objects like this is to use CSOM in PowerShell, however even then it doesn't return quite the same object that you see on prem. (In short, the method you want doesn't exist.. but I'll show you how to get there at least.)
    You'll need the Microsoft.SharePoint.Client.dll installed (You can download the SharePoint 2013 Client SDK, just do a search for it.)
    Once that's installed, then the following script will retrieve a single column which you can then run
    $column | gm to see the available properties.
    $siteCollectionURL = "https://<tenantname>.sharepoint.com/sites/etc"
    $Credentials = Get-Credential -UserName "[email protected]" -Message "Enter the password for $AdminUser"
    ##Then we'll establish a ClientContext for CSOM.
    $scContext = New-Object Microsoft.SharePoint.Client.ClientContext($siteCollectionURL)
    $SPOcredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Credentials.UserName, $Credentials.Password)
    $scContext.Credentials = $SPOcredentials
    $web = $scContext.Web
    $siteCols = $web.Fields
    $column = $sitecols.GetByInternalNameOrTitle("ColumnInternalName")
    $scContext.load($web)
    $scContext.load($siteCols)
    $scContext.Load($column)
    $scContext.ExecuteQuery()
    Once you run that, $column contains as much info as you can get about the column.
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to check if a particular column in Oralce Forms builder is editable

    Hii
    I have a requirement to perform in Oracle forms to modify a form. when I log in using my instance credentials I can see some columns in the form are not editable,whereas the user using the same form has those columns in editable format.Can anyone let me know how this is possible and if there is any method to check this.

    You are right, I Gave you an incorrect information.
    If you want to know if the item is insertable, use:
    val := Get_Item_Property ( 'block.item', INSERT_ALLOWED);
    If val = 'TRUE' Then -- you can insertIf you want to know if the item is updatable, use:
    val := Get_Item_Property ( 'block.item', UPDATE_ALLOWED);
    If val = 'TRUE' Then -- you can updateFrancois

  • How to Check Weather Database Is Working Perfectly

    Hi All DBA,
    I want to know wethter we have any command to know, that the database is working perfectly or its have all the logs files, table spaces index are correct. There is no falt in the database.
    SKM

    Hi,
    Like Jaffar said, run statspack is a good thing.
    To check performance, the best way consist to run statspack when your database work well, to have a baseline.
    When you think there is any problem, rerun statspack and compare with your baseline.
    Nicolas.
    Message was edited by:
    Nicolas Gasparotto

  • How to make a select list to return value to numeric column?

    I do have a select list with static values (STATIC:01;0,02;1,03;2,04;3,05;4,06;5,07;6,08;7,09;8,10;9). The problem is that I am returning a value to a numeric column. Therefore I have set 'Post Calculation Computation' as "to_number(:P73_MRGRATING, 9);" however I am getting ORA-01722: invalid number. How, (or when and where) to properly convert a character from a select list representing a numeric value into column of NUMBER data type?
    Thank you for your time.
    DanieD

    Sergio,
    It is because I am not able convert a value in a page item (:P73_ID) to number. On a page before, I have assigned a value to an application item (APPL_ID). On page 73, I want to assign the value in APPL_ID to the page item P73_ID . The value assigned to APP_ID is numeric. On a page 73 I also have a computation in Page processing section. It is an 'After Submit' processing of a static assignment of application item APPL_ID to page item P73_ID. Unfortunately it does not work. (ORA-01722: invalid number). I have tested this also with a 'Post Calculation Computation' on page item P73_ID (to_number(:P73_ID, 9999999999);) and I am still getting ORA... error. Only way I can make it work is to create a page item P73_ID as a text field, then when I run page 73 and enter a value into P73_ID manually - then it works and I can save the values from the form into database...
    The strange thing is that I am using application item APPL_ID on a couple of pages, in where clauses and it always works, even when I am comparing APPL_ID against a numeric value like select * from a_table where some_number = :APPL_ID, this works. But when I would like to create an entry form and assign application item APPL_ID to the page item P73_ID that is referencing a numeric table column – then I am getting ORA-01722…
    Is there any application (sample application) that is doing this and it works so I can check it and learn how to create this process appropriately?
    Thank you for your time.
    DanielD

  • How to check Radio buttons with Differfent button values

    Good Day,
    I am currently trying to write a script that would hide 5 of 6 radio buttons
    I have a radio button called "3. Transfer"
    with values of :
         Yes;
         Supp;
         Reg; and
         do_not_transfer
    as well I have a drop down called "REL.ITEM"
    with values of
              3(A);
              3(B);
              4(A);
              4(B); and
              4(C)
    I know how to get the value of the box and manipulate other fields
    like
    //START
    var transfer = getField("3. Transfer").value
    var relitem = getField("REL.ITEM").value
    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
         getField("a. recommend").checkThisBox(0,true);
         getField("a. recommend").display = display.visible
        getField("a. I do not recommend").checkThisBox(0,false);
        getField("a. I do not recommend").display = display.hidden
    else if (transfer = "do_not_transfer")
         getField("a. recommend").checkThisBox(0,false);
         getField("a. recommend").display = display.hidden
         getField("a. I do not recommend").checkThisBox(0,ftrue);
         getField("a. I do not recommend").display = display.visible
    //END
    I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
    I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
    Thanks for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    This should be:
    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    Similarly,
    else if (transfer = "do_not_transfer")
    should be:
    else if (transfer == "do_not_transfer")
    In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

Maybe you are looking for