Is that Any Function Available

Hi,
I have the values like 00000000000988 in my table.
Is that any Functions available in Oracle to trim the zero values in the first.
so that i will get the field value as 988 alone.
Thanks,
Murali.V

One other solution for 10G with Regex:
Connected to Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
Connected as SYSADM
SQL>
SQL> SELECT t.a, regexp_replace(t.a, '^0*(.*)','\1') aaa
  2    FROM (
  3          SELECT '000000123' a
  4            FROM dual
  5          UNION
  6          SELECT '000000asdfawfd' a FROM dual) t
  7  ;
A              AAA
000000123      123
000000asdfawfd asdfawfd
SQL> And if it is obvious 0 only comes infront you can use TRANSLATE

Similar Messages

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • Is any function available for this

    Hi All,
    We all have might have written a query a lot of times where we need to find the next value corresponding to a key based the particular value of key being passed.
    I have always achieved it through subqueries using the MIN clause , but it does look clumsy and big if there a re a lot of tables/joins involved.
    Was just curious to know if Oracle has introduced any function from 9i onwards to get it working in a single line.
    Following is a typical code snippet for such cases
    WITH table1 as (select 1 as sno, 'Jim' as name from dual
    UNION
    select 4 as sno, 'Dave' as name from dual
         UNION
         select 7 as sno, 'Mike' as name from dual
         UNION
         select 6 as sno, 'Tom' as name from dual
         UNION
         select 3 as sno, 'Steve' as name from dual)
    select name from table1
    where sno = (select min(sno)
    from table1
         where sno > &ip_sno)
    So if I pass 1 in the parameter ip_sno, i shud get 'Steve', for 6 it should return 'Mike', for 7 it would return a NULL.
    I am pretty sure everone must have had to use this a lot of times ....
    Thanking in anticipation ....

    WITH table1 as (select 1 as sno, 'Jim' as name from dual
    UNION
    select 4 as sno, 'Dave' as name from dual
    UNION
    select 7 as sno, 'Mike' as name from dual
    UNION
    select 6 as sno, 'Tom' as name from dual
    UNION
    select 3 as sno, 'Steve' as name from dual)
    select min(name) keep (dense_rank first ORDER BY sno)
    from table1
    where sno > 3

  • Any function in SQL or PL/SQL

    how the occurance-position of a particular character in a given string can be extracted with in a pl/sql block or procedure. is there any function available to do so.

    Maybe the INSTR function.
    See http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions55a.htm#SQLRF00651
    how the occurance-position of a particular character
    in a given string can be extracted with in a pl/sql
    block or procedure. is there any function available
    to do so.

  • Is there any registry functions available in Flex

    Is there any registry functions available in Flex:
    So that it can be useful...to make a application to start during startup

    I dont think so through Flash player security constraint you can access registry on local.

  • Is there any Function module available for GR IR for purchase order

    Hi
    Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
    One way to create a custom fuction to fetch the details from MSEG and BKPF.
    Can somebody suggest a better solution.
    Thanks in advance.
    Ruhi Hira

    Which table in BAPI_PO_GETDETAILS exactly has these information ?
    PO_HEADER_TEXTS
    PO_ITEMS
    PO_ITEM_ACCOUNT_ASSIGNMENT
    PO_ITEM_SCHEDULES
    PO_ITEM_CONFIRMATIONS
    PO_ITEM_TEXTS
    PO_ITEM_HISTORY
    PO_ITEM_HISTORY_TOTALS
    PO_ITEM_LIMITS
    PO_ITEM_CONTRACT_LIMITS
    PO_ITEM_SERVICES
    PO_ITEM_SRV_ACCASS_VALUES
    RETURN
    PO_SERVICES_TEXTS
    EXTENSIONOUT
    NFMETALLITMS
    Regards
    Ruhi Hira

  • Any Function module or BAPIs are available to get scheme name for the inter

    I have internal order no value in table  AUFK-AUFNR ,  and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?

    look at DB-VIEW  "V_IVP_OR".
    Regards,
    Laurent

  • Any Function in T-SQL thats similar to GREATEST() IN Orcl.

    Is there any Function in T-SQL thats similar to GREATEST() IN Orcl?
    Iam trying to find the greatest of two DATETIME datatype Fields in my 'select's.
    If there is no in built function, Whats the best approach?

    MKR,
    If you are using SS 2005, you could use the new operator UNPIVOT.
    Code Block
    DECLARE @MyTable table
    ( RowID int IDENTITY,
    Date1 datetime,
    Date2 datetime,
    Date3 datetime NOT NULL DEFAULT getdate()
    INSERT INTO @MyTable VALUES ( '2007/01/01', '2007/02/01', '2007/01/31' )
    INSERT INTO @MyTable VALUES ( '2007/10/10', '2007/11/01', DEFAULT )
    INSERT INTO @MyTable VALUES ( '2007/12/01', '2007/12/05', '2007/12/06' )
    SELECT
    a
    .RowID,
    a.Date1,
    a.Date2,
    a.Date3,
    b.Greatest
    FROM
    @MyTable
    AS a
    INNER JOIN
    SELECT
    RowID
    MAX([Value]) AS Greatest
    FROM
    @MyTable
    UNPIVOT
    [Value]
    FOR ColumnName IN ([Date1], [Date2], [Date3])
    ) AS unpvt
    GROUP BY
    RowID
    ) AS b
    ON a.RowID = b.RowID
    ORDER BY
    a
    .RowID
    -- OR
    SELECT
    a
    .*, b.Greatest
    FROM
    @MyTable
    AS a
    CROSS APPLY
    SELECT
    MAX(Value) AS Greatest
    FROM
    @MyTable
    UNPIVOT
    [Value]
    FOR ColumnName IN ([Date1], [Date2], [Date3])
    ) AS unpvt
    WHERE
    unpvt
    .RowID = a.RowID
    ) AS b
    ORDER BY
    a
    .RowID
    GO
    AMB

  • Is there any function module that brings out profile planner

    Hello experts,
    Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
    Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
    Thanks in advance.

    look at these fms..
    CACS_PROFILE_PARTNER_READ
    CACS_PROFILE_SHOW

  • I am in Canada, but I want an app that is only available to US customers. Is there any way I can get this app?(TV Guide). Thanks

    I am in Canada, but want an app that is not available to me (US only), is there any way I can get this appÉ (TV Guide). Thanks.

    No.

  • I called a contact and their current location showed up. I've never noticed or seen that before. Is that feature only available during calls or can I find current locations of any of my contacts?

    I called a contact and their current location showed up. I've never noticed or seen that before. Is that feature only available during calls or can I find current locations of any of my contacts?

    Your friend may have this turned on -
    Settings - Privacy - Location Services - scroll all the way down - System services - Share my location - toggle on

  • System table that stores info about any function module

    Hi All,
    I know that table TFDIR stores primary information about any function module.
    Could anyone tell me where the code of that function module gets stored in?
    Also.. If I want to write an ABAP code to read the function module code then what is the best possible solution?
    I want to read a function module code if that contains specific string.
    Can anyone help me  with that?
    Thanks in advace and any answer will be appreciated.
    Regards
    Jignesh
    Edited by: Jignesh Patel on Jun 12, 2008 12:22 PM

    Hi Jignseh,
    The codes are not stored in any table, they are stored as cluster.
    To read the code, you can use READ REPORT.
    But there you must provide the Include Name
    For Example , If you want to read the code of READ_TEXT,
    READ REPORT 'LSTXDU01'.
    You can get this include name inside include LSTXDUXX
    Use "GET_INCLUDES" to get all include names
    Edited by: Swastik Bharati on Jun 12, 2008 12:28 PM

  • I just installed Yosemite. iPhoto is gone, and Photos does not open.  Instead, I am prompted to update to the latest version. The App Store tells me that is not available in the US.  What do I do?  Cannot access any photos.

    I just installed Yosemite. iPhoto is gone, and Photos does not open.  Instead, I am prompted to update to the latest version. The App Store tells me that is not available in the US.  What do I do?  Cannot access any photos.

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Download and install the OS X Yosemite 10.10.3 Combo Update.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Any function like 'SEARCH', 'SEARCH NEXT' available in tree element?

    As we know, the tree control in EnjoySAP Controls provides the functions 'Search' and 'Search Next'. Are these functions available in a tree UI element in WebDynpro?

    Hi
    According to my information i dont think functions like 'Search' and 'Search Next' are available for a tree UI element in WebDynpro.
    If you want to check any value follow the below instructions:
    1.      In the test script editor, open the command interface.
           2.      Expand the tree in the left side of the structure editor to display the relevant element.
           3.      From the context menu, choose Insert Check. The element is copied to the GETS_AND CHECKS node.
           4.      Under the GETS_AND CHECKS node, double-click the element to display it for editing in the right-hand pane.
           5.      Parameterize the CheckAction field and ExpectedValue field as required. Optionally, parameterize the Value field to perform a GET as well.
    For further clarifications please go through the link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/84/ef2a41b108f523e10000000a155106/frameset.htm
    Rergards
    Elizabeth

  • Is there any function that returns the latest DDL statement

    can anyone tell me if there is any FUNCTION that returns latest DDL statement performed in a schema.
    OR
    if there is any TABLE that will be populated with latest
    DDL statement in schema.
    THANK YOU.

    The table all_objects (and/or dba_objects) contains a column called last_ddl_time. Thus, a query like
    scott@jcave > SELECT max(last_ddl_time)
      2  FROM all_objects
      3 WHERE owner = 'SCOTT';
    MAX(LAST_DDL_TI
    28-NOV-03will tell you the last time any object owned by SCOTT had DDL issued against it.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

Maybe you are looking for