Varchar to Number with TO_NUMBER() function!

Hello,
Im trying to convert a string to a number, i know it must be very simple but i cant figure out the right syntax.
im trying it like this:
matchums.PROV_GRUNDLAGE:= TO_NUMBER(rechnungsaus.PROV_GRUNDLAGE,10.2);
-- rechnungsaus.PROV_GRUNDLAGE is a varchar2(30)
-- matchums.PROV_GRUNDLAGE is number(10,2)
How do i convert this string the easiest way??
thanks for help!
Phil

Oh, sorry.
matchums.PROV_GRUNDLAGE is number.
rechnungsaus.PROV_GRUNDLAGE is varchar.
Only this!
matchums.PROV_GRUNDLAGE := to_number(rechnungsaus.PROV_GRUNDLAGE);
SQL> alter session set nls_territory=Germany;
Session altered.
SQL> select to_number('12345678,91') from dual;
TO_NUMBER('12345678,91')
12345678,9
SQL> set numwidth 20
SQL> select to_number('12345678,91') from dual;
TO_NUMBER('12345678,91')
12345678,91
---- Additional Info.
matchums.PROV_GRUNDLAGE
:= to_number(rechnungsaus.PROV_GRUNDLAGE,,'99999999D99','nls_numeric_characters = '',.''');
SQL> select to_number('12345678,91','99999999D99','nls_numeric_characters = '',.''') from dual;
TO_NUMBER('12345678,91','99999999D99','NLS_NUMERIC_CHARACTERS='',.''')
                                                           12345678,91Message was edited by:
ushitaki

Similar Messages

  • To_number function return Invalid number

    Dear All,
    We have problem recently regarding one of our query that using to_number function. It worked smoothly for 4-5 years until recently our client complaints that the query is returning error ORA-01722: invalid number.
    This is the SQL Script -> SELECT * FROM <table_name> WHERE to_number(b) between :param1 and :param2;
    * Column b is defined as VARCHAR2(20)
    First thing that come to my mind is this error is due to invalid value entered by user. Using the solutions provided by users in this forum and internet, I created SQL a function that checks whether the value is numeric or not.
    So, when I run the query (+SELECT b from <table_name> WHERE is_numeric(b) = 0 AND ROWNUM < 20+) this is the result that I get.
    b
    251567
    251568
    251569
    251570
    251571
    (Up to 11 record; value from 251567 - 251577)
    Is there any limitation on the maximum value that can be converted using to_number* function?*
    I have search the solutions over the internet and I accept the solution/recommendation that we should not store numeric value on varchar/char column; but I hope somebody can explain why I can't use to_number to convert the above figures to numeric, because when I execute SELECT to_number('251567') FROM DUAL it doesn't returned any error)
    Thank you in advance for any help or clarification on this issue.
    Edited by: user5535734 on Apr 16, 2012 10:46 PM

    Funny answer, Billy!
    Sounds like: The world is evil, so you have 3 choices:
    1. Implement a good world
    2. Be a bad guy, too
    3. Live with that bad world and its consequences
    I guess, 930427 only asked for some protection...
    If one has to deal with two external system to move data from one to another - you can't change either of these systems (1 or 2) and you can't afford to fail (3).
    Sometimes blanks inside the numeric values are the reason for INVALID NUMBER, i.e. "123 456".
    as simple
    to_number(replace(VALUE_CHAR, ' ', NULL))
    may help...

  • How to find the number of data items in a file written with ArryToFile function?

    I have written an array of number in 2 column groups to a file using the LabWindows/CVI function ArrayToFile...Now if I want to read the file with FileToArray Function then how do I know the number of items in the file. during the write time I know how many array items to write. but suppose I want the file to read at some later time then How to find the number of items in the file,So that I can read the exact number and present it. Thanks to all
    If you are young work to Learn, not to earn.
    Solved!
    Go to Solution.

    What about:
    OpenFile ( your file );
    cnt = 0;
    while ((br = ReadLine ( ... )) != -2) {
    if (br == -1) {
    // I/O error: handle it!
    break;
    cnt++;
    CloseFile ( ... );
    There are some ways to improve performance of this code, but if you are not reading thousands of lines it's quite fast.
    After this part you can dimension the array to pass to FileToArray... unless you want to read it yourself since you already have it open!
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • To_number function doesn't work with apex_collections in where clause

    One of my applications I have been using apex_collections and to_number function
    in the where clause. Since we upgraded apex to version 3.0.1 , it gives the invalid number error.
    Is this a bug in the new Version.
    I had to re-write the logic to fix the application.

    Can you show us that code? An example on apex.oracle.com where we can see the error would be great.
    Scott
    P.S. Please tell us your first name and put it into your handle and/or profile to help us.

  • My 3rd iphone. 3GS I did not buy from an apple store, how do I register this serial number with my apple account? it is already sync to it and will preform every function except email to my home computer. It says apple ID disabled

    My 3rd iphone is a 3GS. I did not buy this one from the apple store, how do I register this serial number with my apple account? it is already sync'd and it and will preform every function except email to my home computer. It says apple ID disabled, also will not update my apps, same promt apple id disabled.
    anyone know where I can go to register this phone? Thanks

    https://register.apple.com

  • Returning a number with precsion in pl/sql function

    How can I return a number with desired precision in oracle function
    e.g
    Function return_number ( --- )
    return number
    is
    v_number number(10,2)
    begin
    select no into v_number from table;
    return v_number;
    end;
    will this work

    How can I return a number with desired precision in oracle functionCreate a subtype as e.g. in
    SQL> create or replace package pkg
    as
    subtype n10_2 is number(10,2);
    end pkg;
    Package created.
    SQL> create or replace function return_number
       return pkg.n10_2
    is
       v_number       pkg.n10_2;
    begin
       return v_number;
    end return_number;
    Function created.
    SQL> select object_name ,data_type, data_precision, data_scale from user_arguments where object_name = 'RETURN_NUMBER'
    OBJECT_NAME                    DATA_TYPE                      DATA_PRECISION DATA_SCALE
    RETURN_NUMBER                  NUMBER                                     10          2
    1 row selected.also possible:
    ... return tab.col%type;where col is a column of tab with data type number(10,2).

  • My ipad has frozen leaving candy crush, I tried to put it off using the on/off button, but now I have a black screen with no function. I can't read the serial number on the back as it is tiny.! any ideas?

    My Ipad mini has frozen leaving Candy crush. I tried to put it off using the on/off button, now the screen is black with no function. I can hear Siri if I push the control. It is charged. Any ideas? I can't read the very small printed serial number on the back so can't use the Apple help as they require the serial number.

    Hold down the sleep/wake button and the home button for ~10 seconds, or until the apple logo appears.  This is called a reset.
    HTH

  • TO_NUMBER Function Issue

    Hi guys,
    would like to ask on what cases would a query return an invalid number error? I know if the column has special characters and letters it would return an invalid number when you use to_number function but I currently have a scenario wherein I have whole numbers in a varchar column but i still get invalid number error.
    the data that i'm trying to convert to number was from a csv file. When i first loaded the csv data into the oracle external table , it returned an invalid number error. So, what i did was change the data type of the external table into varchar so that it will load the data.
    Now what i want to do is transfer the data from external table to a dimensional table. Since the data type in dimensional table is Number , i have to use to_number function to be able to insert the data. I already tried to use to_number(to_char(trim(columnA))) but still wouldn't work.
    Any idea? Appreciate your help.
    Thanks.

    977487 wrote:
    I checked the csv file through unix and found that there is a control M in Col2. Believe that's what causes the invalid number error.
    You guys are awesome. Thank you very much!Was this data - the .csv file - moved between a *nix and a Windows platform?  If so, which direction?
    *nix and Windows use a different standard to indicate "end of record".  When moving text files between platforms, you have to take that into account.  If moving the file with ftp, you have to indicate it is a 'text' or 'ascii' transfer.  If you forget, then after the fact you can use the 'dos2unix' or 'unix2dos' utility to fix the file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue with to_number

    Hello all.
    Please explain me the following phenomena, i cant figure this out.
    Why is 'to_number' function forced by the optimizer in this query @ the operation number 11 ?
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> explain plan for
      2  with q as (
      3    select v$parameter.value bs_value
      4    from v$parameter
      5    where name='db_block_size'
      6  )
      7  select a.username,
      8         a.sid, a.serial#,
      9         round(((b.blocks*bs_value)/1024/1024),2) size_mb,
    10         a.status,
    11         b.segfile#,
    12         b.segblk#
    13  from v$session a,
    14       v$sort_usage b,
    15       v$process c,
    16       q
    17  where a.saddr = b.session_addr
    18    and a.paddr = c.addr
    19    and ((nvl(b.blocks,0)*nvl(bs_value,0))/1024/1024) > 0
    20  -- group by b.segfile#, b.segblk#,
    21  order by size_mb;
    Explained.
    SQL>
    SQL>
    SQL> set linesize 250
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 3927520946
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                 |     1 |   668 |     3 (100)| 00:00:01 |
    |   1 |  SORT ORDER BY               |                 |     1 |   668 |     3 (100)| 00:00:01 |
    |   2 |   NESTED LOOPS               |                 |     1 |   668 |     2 (100)| 00:00:01 |
    |*  3 |    HASH JOIN                 |                 |     1 |   655 |     2 (100)| 00:00:01 |
    |*  4 |     HASH JOIN                |                 |     1 |   625 |     2 (100)| 00:00:01 |
    |   5 |      NESTED LOOPS            |                 |     1 |   509 |     1 (100)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |*  6 |       HASH JOIN              |                 |     1 |   496 |     1 (100)| 00:00:01 |
    |   7 |        NESTED LOOPS          |                 |     1 |   428 |     1 (100)| 00:00:01 |
    |*  8 |         HASH JOIN            |                 |     1 |   138 |     1 (100)| 00:00:01 |
    |*  9 |          FIXED TABLE FULL    | X$KSUSE         |     1 |    69 |     0   (0)| 00:00:01 |
    |* 10 |          FIXED TABLE FULL    | X$KTSSO         |     1 |    69 |     0   (0)| 00:00:01 |
    |* 11 |         FIXED TABLE FULL     | X$KSPPCV        |     5 |  1450 |     0   (0)| 00:00:01 |
    |* 12 |        FIXED TABLE FULL      | X$KSPPI         |     1 |    68 |     0   (0)| 00:00:01 |
    |* 13 |       FIXED TABLE FIXED INDEX| X$KSLED (ind:2) |     1 |    13 |     0   (0)| 00:00:01 |
    |* 14 |      FIXED TABLE FULL        | X$KSUSE         |     1 |   116 |     0   (0)| 00:00:01 |
    |* 15 |     FIXED TABLE FULL         | X$KSUPR         |     1 |    30 |     0   (0)| 00:00:01 |
    |* 16 |    FIXED TABLE FIXED INDEX   | X$KSLED (ind:2) |     1 |    13 |     0   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       3 - access("S"."KSUSEPRO"="ADDR")
       4 - access("S"."ADDR"="KTSSOSES")
       6 - access("X"."INDX"="Y"."INDX")
           filter(TRANSLATE("KSPPINM",'_','#') NOT LIKE '#%' OR "KSPPSTDF"='FALSE' OR
                  BITAND("KSPPSTVF",5)>0)
       8 - access("KTSSOSES"="S"."ADDR" AND "KTSSOSNO"="S"."KSUSESER")
    PLAN_TABLE_OUTPUT
       9 - filter("S"."INST_ID"=USERENV('INSTANCE') AND BITAND("S"."KSSPAFLG",1)<>0 AND
                  BITAND("S"."KSUSEFLG",1)<>0)
      10 - filter("X$KTSSO"."INST_ID"=USERENV('INSTANCE'))
      11 - filter(NVL("KTSSOBLKS",0)*TO_NUMBER(NVL("KSPPSTVL",'0'))/1024/1024>0)
      12 - filter("KSPPINM"='db_block_size' AND "X"."INST_ID"=USERENV('INSTANCE') AND
                  TRANSLATE("KSPPINM",'_','#') NOT LIKE '##%')
      13 - filter("S"."KSUSEOPC"="E"."INDX")
      14 - filter("S"."INST_ID"=USERENV('INSTANCE') AND BITAND("S"."KSSPAFLG",1)<>0 AND
                  BITAND("S"."KSUSEFLG",1)<>0)
      15 - filter("INST_ID"=USERENV('INSTANCE') AND BITAND("KSSPAFLG",1)<>0)
      16 - filter("S"."KSUSEOPC"="E"."INDX")
    44 rows selected.

    Actually I can reproduce, when hardcoding block size the query runs ok, but the other version keeps on ending up in an error:
    SQL>   select a.username,
      2           a.sid, a.serial#,
      3           (b.blocks * 8192)/1024/1024 size_mb,
      4           a.status,
      5           b.segfile#,
      6           b.segblk#
      7    from v$session a,
      8         v$sort_usage b,
      9         v$process c
    10    where a.saddr = b.session_addr
    11      and a.paddr = c.addr
    12      and (b.blocks * 8192)/1024/1024 > 0;
    USERNAME                              SID    SERIAL#    SIZE_MB STATUS     SEGFILE#    SEGBLK#
    *********                             254       6958          1 INACTIVE        201      33280
    *********                             254       6958          1 INACTIVE        201      33664
    2 rows selected.
    SQL>  with q as (
      2    select v$parameter.value bs_value
      3    from v$parameter
      4    where name='db_block_size'
      5  )
      6  select a.username,
      7         a.sid, a.serial#,
      8         round(((b.blocks*bs_value)/1024/1024),2) size_mb,
      9         a.status,
    10         b.segfile#,
    11         b.segblk#
    12  from v$session a,
    13       v$sort_usage b,
    14       v$process c,
    15       q
    16  where a.saddr = b.session_addr
    17    and a.paddr = c.addr
    18    and ((nvl(b.blocks,0)*nvl(bs_value,0))/1024/1024) > 0;
      and ((nvl(b.blocks,0)*nvl(bs_value,0))/1024/1024) > 0
    ERROR at line 18:
    ORA-01722: invalid number
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      ProductionNow I've been fiddling with the query, adding to_number, omitting nvl etc. etc., but I keep on getting invalid number,. no matter what...
    This is either very weird or I'm missing something very obvious here.. ?:|

  • How to override to_number function?!

    Hi,
    I already tried to find an answer by searching this forum but without success...
    My problem is, that I have a lot of mappings using the to_number() function to convert char into number. Now it turns out, that in some cases - due to the bad data qualtity - fields contain special chars e.g. 1234" Don't ask why ;) Of course the reguIar tu_number() function fails on that. Now I wrote a to_number function that handles the issue by removing all the special chars and then convert. I now want to override oracle's built-in to_number function with my own function.
    Do you have any ideas how that works? As a requirement the solution should be simple... It would be an imense work to edit every mapping. I global solution is preferred. Something like a priority option, to take self written functions first or sth...
    Thanks for any help!
    Cheers Steffen

    Hi,
    you could use OMB to change all occurance of that functino in your project.
    Unfortunately I know OWB allmost only from theory :-( but I remember, that you can set a context to a project or a mapping and all subsequent operations will happen within that horizont.
    As far as I saw, OMB isn't to hard to use, even without days of learning, just by looking for fitting operation, but I know documentation about OMB is pretty poor, almost only syntax reference is available.
    really overriding the pre_build to_number-function might be possible as sys, but I would avoid that or only do in a relly play-instance. I suppose you tried allready simply to run 'create or replace ...' ?
    Thanks for your tip about number checking, but I tried allready many variations functions like that. I never can get it validated:
    I have a function is_number_num, returning 1 for ok, 0 for false, which si working fine on SQL*PLUS, but when I use it splitter-condition, in this variations:
    "IS_NUMBER_NUM"( GRP_IN.ANZAHL,'NLS_NUMERIC_CHARACTERS='',.''') = 1
    I get: PLS-00801 internal error [phdxcsql_canonicalize_sql:state]
    with .... == 1
    I get:
    Line 0, Col 0:
    The expression is not properly formed.
    I have no bloody idea, what that means and what might be wrong in here ? Even google does not return 1 singel page for the error-parameter !
    I tried several versions:
    "IS_NUMBER_NUM"( GRP_IN.ANZAHL,'NLS_NUMERIC_CHARACTERS='',.''') = 1
    also this: "IS_NUMBER_NUM"( GRP_IN.ANZAHL) = 1
    but nothing is accepted !
    Also I made a more easy function for checking for date-format, which works fine in SQL*PLUS, but can't be validated in OWB-splitter.
    Oracle support is playing for time since days !
    thsi function brings same error, depending if I use 1 or 2 "=" !???
    any idea ?
    somehow I have the feeling, I missed 1 easy rule on how to use a splitter-condition correctly ?
    But I can't see anything wrong in my constructions, especially because they are working fine in SQL*PLUS !???
    thanks for any hint, LaoDe

  • To_Number function is changing decimal places????

    Hi all..I have a number 11,308,861.09
    To sum up with another..I have to use to_number function
    When I am using this function, I am viewing that as 1.13088610859
    Please help....

    Okay.....I tried with seperate sample xml after reading you post....
    This number looked good.
    But in the original template this still showed the same way with incoreect decimals.
    then.. I tried this:
    xdoxslt:to_number(number(ELEMENT))
    This worked.

  • Having trouble with put_line function in block statement..

    Am a student, and the request does not appear to be in my book anywhere... Nothing on put_line, or block statements that I can see..
    Need to write a block which will bring back via put_line for department 110: the department_id (departments table), the department_name (departments table), and the city in which the department is located (which must be pulled from locations table... can be joined by department_id). I can write the select statement with join, just not sure how to turn it into a block with put_line function..
    any advice appreciated.. Thanks.

    Hi,
    You need to format your code, so that it's easy to see what statements are in each section (DECLARE, BEGIN, etc.).
    The compiler doesn't care about this, but it will help anyone who tries to read your code, including yourself.
    Type &#123;code&#125; before and after formatted sections when posting messages on this site.
    All statements, including each individual variable declaration) end with a semicolon.
    If a query will return no more than one row, you can capture the results using an INTO-clause, right after the SELECT-clause. For every column in the SELECT-clause, there will be one variable in the INTO-clause.
    Lists, including lists of table names in a query's FROM-clause, are delimited by commas.
    In a query's FROM-clause, the real name of the table comes first, optionally followed by the alias you're using in the query.
    I think this is what you're trying to do:
    SET   SERVEROUTPUT  ON  SIZE 50000
    Declare
        dep_id    NUMBER;
        Dep_string VarChar (100);
    Begin
        select  d.department_id, d.department_name -- , l.city
          into  dep_id,          dep_string
          from  departments  d
             ,  locations    l
          where d.location_id = l.location_id
            and d.location_id = 110;
        DBMS_OUTPUT.PUT_LINE (Dep_string);
    END;
    /No one should ever have this many errors at one time. Write code in much smaller increments, and test after each one. For example, you know you'll be using dbms_output.put_line, so start with something like:
    SET   SERVEROUTPUT  ON  SIZE 50000
    BEGIN
        dbms_output.put_line ('Hello, world!');
    END;You may have problems if you forget semicolons, or SET SERVEROUTPUT. Solve those before you go any further.
    Once the program above is working, add a little (and I mean a little) to it.
    For example, you know you'll be printing a varibale, not a literal, so change it to a variable:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
        dep_string  VARCHAR2 (100) := 'Hello, world!';
    BEGIN
        dbms_output.put_line (dep_string);
    END;And so on.
    Edited by: Frank Kulash on Dec 15, 2008 12:36 PM

  • TO_Number Function showing wrong values

    Hi All,
              I am passing a Char value from oracle forms to oracle reports as parameter.
    In Report Query I'm converting the char value into number for comparison using TO_NUMBER() function. As the char value is large value like '001002004006004' it is converting to something like 1.2e+12 and my query results goes wrong. I want value, something like 1002004006004( as initial 00 will be removed).
    I'm using Oracle forms 10g and Reports 10g
    Can anyone please help me.
    Thanks
    Sandeep
    ----Don't think outside the box, Think as if there is no Box at all.

    Hi, Sandeep,
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements) that shows what the problem is, and the correct results you want from that sample data.  Explain how you get those results from that data.
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002
    Don't confuse how a number is displayed with what that number is.  SQL*Plus (and other front ends), by default, allows only 10 character spaces for displaying NUMBERs.  If you have a NUMBER that doesn't fit into 10 spaces, then SQL*Plus will round the digits after the decimal point.  If it still doesn't fit (which is the case with 1002004006004) then SQL*Plus will use scientific notation, rounding the decimal places.  The actual value (at least 38 significant digits) will be used in all computations, regardless of how the NUMBER is displayed.  I doubt if what you posted has anything to do with the real problem.

  • How to Achieve this? - Varchar to number

    Hi,
    We have a function that returns the ID's in the Varchar format as follows,
    select xx_function(89) from dual
    output
    171,170,178,179,184,180,185,186,272,278,183
    I need to use this list of values in another table to get data,
    like
    Select * from table XX where xx.id in ( select xx_function(89) from dual)
    but, it gives me invalid number error...
    How do i convert each of this varchar into number... or how can it be achieved?...
    Can any one guide me!

    You need a multi-value variable like an array, not a string with commas in it, which has no special significance in SQL or PL/SQL. Fortunately SQL provides them:
    SQL> CREATE OR REPLACE TYPE integer_tt AS TABLE OF INTEGER
      2  /
    Type created.
    SQL> var rc refcursor
    SQL> set autoprint on
    SQL> DECLARE
      2      v_id_list INTEGER_TT;
      3  BEGIN
      4      v_id_list := INTEGER_TT(20,40);
      5      OPEN :rc FOR
      6          SELECT *
      7          FROM   dept d
      8               , TABLE(v_id_list) t
      9          WHERE  t.column_value = d.deptno;
    10  END;
    11  /
    PL/SQL procedure successfully completed.
        DEPTNO DNAME           LOC           COLUMN_VALUE
            20 RESEARCH        DALLAS                  20
            40 OPERATIONS      BOSTON                  40
    2 rows selected.In place of the hardcoded assignment above, you could call a function that returned an INTEGER_TT value.
    http://www.williamrobertson.net/documents/comma-separated.html
    http://www.williamrobertson.net/documents/collection-types.html

  • Error while replacing IF statements with DECODE function in procedure

    Hi All,
    I have created a procedure which has nested IF statements. Now I want to replace the IF statements with DECODE functions to improve performance.
    Procedure:
    IF (var_int_sev = '0')
    THEN
    var_sev := '2';
    ELSE
    SELECT sev
    INTO var_int_sev
    FROM errorconfig
    WHERE errorcode = var_errorcode;
    var_sev := var_int_sev;
    END IF;
    I converted the above IF statement into DECODE function as mentioned below:
    var_Sev := DECODE(var_int_sev,0,2,SELECT severity FROM errorconfig WHERE errorcode=var_ErrorCode)
    But it throws below error at the select statement used inside DECODE.
    Error(58,51): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternativ
    Can someone help me in converting the IF to DECODE in the above case. Also how can we use a select statement inside decode.

    instead of trying to rewrite all your code and hoping that the performance will be better, it's a better option to investigate and find out which part of your application is slow
    read this:
    When your query takes too long ...

Maybe you are looking for

  • Problems with DynamicSQL.executeQuery in Windows 7

    Hello. Recently I change the version of BPM Studio from 10.3.1.0 to 10.3.3 and run it in Windows 7. Now when I execute an ScreenFlow and find a DynamicSQL.executeQuery show the follow error: automatica:12:45: the method 'executeQuery' from DynamicSQL

  • Items purchased using gift card do not appear on computer though money has been taken

    Why do items purchased using gift card not appear in Itunes, on Ipod or on computer although money appears to have been taken from the gift card??

  • How to create user Exits for selecting ranges of the month

    Hi Bw Experts, Right now i need to create a user exits for my report which is coming from Infocube which has 12 months and 12 qtys. But if my client want to see the content of the report for e.g 1 to 3 months in selection screen means then we need to

  • Count consecutive instances of a particular value

    is there a way to have numbers look at a colum and give me the number of the highest consecutive anserws. Here is the example I am dealing with. I would like to have a total at the bottom of each column that will calculate the most consecutive right

  • Slow computer problems, Help please!

    I have the 2011 Macbook pro with 2.2 Ghz processor and 4 gigs of ram, which i Just ordered 8 gigs. My computer has been getting the rainbow wheel every few minutes and I am not sure what is going on. I took it to the apple store and they said that th