Confussion With Decode Statement

Hi...
How to write a deocde Staement for this is Condition....please help me
IF Empno =7369 And Job = 'CLERK' And Deptno IN (20.30) Then
Desc = 'A'
Else
Desc = 'B'
END IF

Why do you think the remaining records should have been filtered? Without a where clause the query will return you entire table contents.
You should read the Oracle Concepts when you get time

Similar Messages

  • Problem with DECODE statement while migrating forms to 6i

    Hi,
    I'm migrating a form from 5 to 6i. When I compiled the form, I got this error witha decode statement.
    The error is
    Error 307 at line 15 column 7
    too many declarations of "DECODE" match this call
    The trigger has this code:
    IF :PRUN_RECS_INSERTED = 'Y' THEN
          RETURN ;
       END IF ;
       INSERT INTO GJBPRUN
        ( GJBPRUN_JOB,
          GJBPRUN_ONE_UP_NO,
          GJBPRUN_NUMBER,
          GJBPRUN_ACTIVITY_DATE,
          GJBPRUN_VALUE )
       SELECT :KEYBLCK_JOB,
              :ONE_UP_NO,
               GJBPDFT_NUMBER,
               SYSDATE,
          DECODE(GJBPDFT_VALUE, 'SYSDATE',
                          DECODE(GJBPDEF_LENGTH,'11',TO_CHAR(SYSDATE,'DD-MON-YYYY'), SYSDATE),
                          GJBPDFT_VALUE)
       FROM   GJBPDFT G, GJBPDEFEdited by: Charan on Mar 16, 2011 9:15 AM

    Hi Charan
    i think it's all about using both CHARACTER and DATE values at the same time in a DECODE statment u should either use char or date datatype.
    DECODE compares expr to each search value one by one. If expr is equal to a search, then Oracle Database returns the corresponding result. If no match is found, then Oracle returns default. If default is omitted, then Oracle returns null.
    e.g.
    If expr and search are character data, then Oracle compares them using nonpadded comparison semantics.
    expr, search, and result can be any of the datatypes CHAR, VARCHAR2, NCHAR, or NVARCHAR2.
    The string returned is of VARCHAR2 datatype and is in the same character set as the first result parameter.
    for more pls have a look here
    Hope this helps,
    Regards,
    Abdetu...

  • Problem with Decode statement

    Hi
    I am trying to achieve the following in my report:
    If an employee has a surname of . (dot) or a first name of . (dot), the report should not display a dot. An employee's name is made up of surname, first name and middle name which should all be concatenated together. To try to achieve this, I have the following statement in my report:
    decode(e.Surname, '.', ( LTRIM(RTRIM((INITCAP(e.FIRST_NAME)))||' '||INITCAP(e.MIDDLE_NAME)) ) ,
    e.FIRST_NAME, '.', ( LTRIM(RTRIM((INITCAP(e.Surname)))||' '||INITCAP(e.MIDDLE_NAME)) ) ,
    ( LTRIM(RTRIM((INITCAP(e.SURNAME )))||', '||INITCAP(e.FIRST_NAME)||' '||INITCAP(e.MIDDLE_NAME)) ) ) as emp_name
    FROM Employee e
    Problem: The above statement is only working for those employees with surname of . (dot). It's not working for first names of dot. How can I use the decode statement OR is there any other way of doing it without using the CASE statement?
    It seems my decode statement doesn't work with 2 different fields (surname, firstname) being tested within one decode statement.Thanks.

    Thank you so much InoL . I have used the ltrim with Replace but now have a new problem.
    Because I am joining Surname, First name and middle name together and put a comma after the Surname, the name now appears as follows:
    , Maria Ane (if Surname is a dot)
    Boiler, (if first name is a dot)
    I would like to get rid of a comma and only have comma when surname or first name does not have a dot, i.e. for those people with full names e.g. Blake, Anna Marie.
    InoL, how can I achieve this? Thanks.

  • Immediate help required with decode statement in scheduling jobs

    Hi
    Iam trying to change a job that runs my procedure using dbms_job.. Here is the output I got.
    Can someone help me why this is giving me errors.
    <code>
    SQL> exec dbms_job.next_date(395,decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),-1,'trunc(sysdate) +18.5/24',1,'trunc(sysdate)+1+6.5/24'));
    BEGIN dbms_job.next_date(395,decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),-1,'trunc(sysdate) +18.5/24',1,'trunc(sysdate)+1+6.5/24')); END;
    ERROR at line 1:
    ORA-06550: line 1, column 30:
    PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL
    statement only
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    </code>
    Thanks in advance

    A possible solution:
    declare
    v_next_varchar varchar2(30);
    v_next_date date;
    begin
    select decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),
                              -1,'trunc(sysdate) +18.5/24',
                                 1,'trunc(sysdate) +1+6.5/24'
    into v_next_varchar
    from dual;
    execute immediate 'select ' || v_next_varchar || ' from dual ' into v_next_date;
    dbms_job.next_date(22, v_next_date);
    commit;
    end;Bye, Aron

  • Logical Standby SQL Apply Using Incorrect Decode Statement

    We are seeing statements erroring out on our logical standby that have been rewritten (presumably by sql apply) with decode statements that don't appear to be correct. For example, here is one of the rewritten statements.
    update /*+ streams restrict_all_ref_cons */ "CADPROD"."OMS_SQL_STATEMENT" p
    set *"APPLICATION"=decode(:1,'N',"APPLICATION",:2)*,
    "STATEMENT"=dbms_reputil2.get_final_lob(:3,"STATEMENT",:4)
    where (:5='N' or(1=1 and (:6='N' or(dbms_lob.compare(:7,"STATEMENT")=0)or(:7 is null and "STATEMENT" is null)))) and(:8="APPLICATION")
    The problem comes in, we believe, with the attempt to write the value "APPLICATION" to the application column which is only a 10 character field. the value for the :1 bind variable is "N" and the value for :2 is null.
    We see the following error on the logical standby:
    ORA-00600: internal error code, arguments: [kgh_heap_sizes:ds], [0x01FCDBE60], [], [], [], [], [], []
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [kxtoedu+54] [PC:0x2542308] [ADDR:0xFFFFFFFFFFFFFFFF] [UNABLE_TO_READ] []
    ORA-12899: value too large for column "CADPROD"."OMS_SQL_STATEMENT"."APPLICATION" (actual: 19576, maximum: 10)
    Is this a configuration issue or is it normal for SQL Apply to convert statements from logminer into decode statements?
    We have an Oracle 10.2.0.4 database running on windows 2003 R2 64-bit os. We have 3 physical and 2 logical standby's, no problems on the physical standbys.

    Hello;
    I noticed some of your parameters seem to be wrong.
    fal_client - This is Obsolete in 11.2
    You have db_name='test' on the Standby, it should be 'asadmin'
    fal_server=test is set like this on the standby, it should be 'asadmin'
    I might consider changing VALID_FOR to this :
    VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES)Would review 4.2 Step-by-Step Instructions for Creating a Logical Standby Database of Oracle Document E10700-02
    Document 278371.1 is showing its age in my humble opinion.
    -----Wait on this until you fix your parameters----------------------
    Try restarting the SQL Apply
    ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATEI don't see the parameter MAX_SERVERS, try setting it to 8 times the number of cores.
    Use these statements to trouble shoot :
    SELECT NAME, VALUE, UNIT FROM V$DATAGUARD_STATS;
    SELECT NAME, VALUE FROM V$LOGSTDBY_STATS WHERE NAME LIKE ;TRANSACTIONS%';
    SELECT COUNT(1) AS IDLE_PREPARERS FROM V$LOGSTDBY_PROCESS WHERE
    TYPE = 'PREPERER' AND STATUS_CODE = 16166;Best Regards
    mseberg
    Edited by: mseberg on Feb 14, 2012 7:37 AM

  • Problem with DECODE block in WHERE clause

    Hi,
    I'm facing problem with DECODE statement. I just simulated my problem in the simple way as follows. If I execute this following query, I should get "hello", but I'm not getting anything (ZERO rows returned).
    SELECT 'hello' FROM DUAL
    WHERE 'sample1' in (DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',
    2, '''sample4'', ''sample5'', ''sample6'''
    I think some problem is there in my WHERE clause.
    But When I'm exeucting the following query as a seperate query, then I'm getting the value of DECODE block properly, but didn;t understnad why its not returning the same way when I'm putting the same DECODE statement in WHERE clause.
    SELECT DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',
    2, '''sample4'', ''sample5'', ''sample6'''
    FROM DUAL;
    Please help me to get out of this problem. Thank you so much in advance.
    Thanks,
    Ramji.

    The value returned by SELECT DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',2, '''sample4'', ''sample5'', ''sample6''') FROM DUAL;
    'sample1', 'sample2', 'sample3' is a single string. Consider it x.
    SELECT 'hello' FROM DUAL WHERE 'sample1' in ( DECODE(1, 1, '''sample1'', ''sample2'', ''sample3''',2, '''sample4'', ''sample5'', ''sample6'''));
    is like SELECT 'hello' FROM DUAL WHERE 'sample1' in ('x');
    or
    SELECT 'hello' FROM DUAL WHERE 'sample1' in ('''sample1'', ''sample2'', ''sample3''') and not
    SELECT 'hello' FROM DUAL WHERE 'sample1' in ('sample1', 'sample2', 'sample3');
    For this same reason SELECT 'hello' FROM DUAL WHERE 'sample1' in (select '''sample1'', ''sample2'', ''sample3''' from dual);
    also does'nt work.
    Please use INSTR to find whether 'sample1' exists in the string 'sample1', 'sample2', 'sample3'.

  • 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 ...

  • Help! format of decode statements with between or signs ?

    Looking for an example of a decode statement with either a between/and or < > signs in the comparison field.
    I have tried several variations, but none seem to work. Any help would be appreciated.
    Here's a sample that doesn't work.
    Select course_no, section_no, capacity, decode(capacity, (capacity < 12), Less than 12, (capacity between 13 and 15), 13-15, More than 15) from section;
    Thanks in advance

    Hi,
    There is a limitation to the Case function, as it cannot be used in the PL/SQL (atleast upto Oracle 8i). Therefore, the only option left is Decode.
    If you have to compare the values like capacity < 12 then display Less than 12. You can write it using combination of other functions.
    For e.g. follow the steps below:-
    1)If you deduct 12 from capacity : (capacity-12) [it will give result as +ve, 0 or -ve.]
    2)If you have to narrow down the values to above three options, use function sign:
    SIGN(capacity-12) [will result into +1, 0 or -1]
    3)Then compare the values using Decode:
    DECODE(SIGN(capacity-12),-1,Less than 12,Greater than or equal to 12)
    The Decode can be used inside Decode(nested Decode) in above steps to compare more than one values (range between) to get the desired result. Hope have made it clear enough. If not, please let me know.
    Cheers.
    Yogesh D.

  • Decode statement with ||','||

    Hi ,
    I've the following requriement where i need to append the 2 numbers with comma inside the decode stmt
    create table  A_STY_VON ( C_1_ID number ,C_2_ID number ,C_3_ID number)
    Insert into A_STY_VON
       (C_1_ID, C_2_ID, C_3_ID)
    Values
       (1, 2, 3);
    Insert into A_STY_VON
       (C_1_ID, C_3_ID)
    Values
       (1, 3);
    Insert into A_STY_VON
       (C_1_ID, C_2_ID)
    Values
       (1, 2);
    Insert into A_STY_VON
       (C_2_ID, C_3_ID)
    Values
       (2, 3);And the following select stmt is working
    SELECT   DECODE (
              A.C_3_ID,
              NULL, DECODE (A.C_2_ID,
                            NULL, A.C_1_ID,
                            A.C_1_ID || A.C_2_ID) ,
                 A.C_1_ID
             || A.C_2_ID
             || A.C_3_Id) dcd
      FROM A_STY_VON A But i want the comma between the numbers so i tried the following ( with distinct )
    where i'm getting the invalid number error
    SELECT  distinct DECODE (
              A.C_3_ID,
              NULL, DECODE (A.C_2_ID,
                            NULL, A.C_1_ID,
                            A.C_1_ID ||','|| A.C_2_ID) ,
                 A.C_1_ID
              ||','|| A.C_2_ID
              ||','|| A.C_3_Id) dcd
      FROM A_STY_VON A Could you please help me to achieve this
    Thank you
    Edited by: Smile on Apr 26, 2012 3:50 AM

    Just so you can understand why the problem has happened...
    There are some implicit datatype conversions going on in your statement, let's just look at a small part of it...
    DECODE (A.C_2_ID,
                            NULL, A.C_1_ID,
                            A.C_1_ID || A.C_2_ID)Your ID's are numeric.
    DECODE as a function can only return a single datatype. That datatype is determined by the datatype of the first value to be returned (if it's null that's another issue but let's not go there).
    So, in your above statement the datatype returned by DECODE is determined by A.C_1_ID, which is numeric.
    Also in your above statement you are doing a string concatenation of A.C_1_ID and A.C_2_ID, so those numbers are implicitly converted to strings and concatenated, but then because DECODE is now defined as needing a number to be returned, the concatenated string of numbers are implicitly converted back to a number, which is fine because the whole string is numeric.
    In PL/SQL code this would go along these principles...
    ... function ...
    declare
      v_retval NUMBER;
      v_c_1_id NUMBER := 123;
      v_c_2_id NUMBER := 234;
    begin
      if v_c_2_id is null then
        v_retval := v_c_1_id;
      else
        v_retval := to_number(to_char(v_c_1_id)||to_char(v_c_2_id));
      end if;
      return v_retval;
    end;Now, if you try and put a comma into your concatenation...
    DECODE (A.C_2_ID,
                            NULL, A.C_1_ID,
                            A.C_1_ID ||','|| A.C_2_ID)Still the first value returned has defined the DECODE as needing to return a numeric value, but this time the second returned value (The 'else' part of the decode) has a string containing numeric digits with a comma in between. When it implicitly tries to convert this string to a number so it can be returned from the function, it finds that it's not a valid number.
    And we can see this if we use the same PL/SQL type code...
    SQL> declare
      2    v_retval NUMBER;
      3    v_c_1_id NUMBER := 123;
      4    v_c_2_id NUMBER := 234;
      5  begin
      6    if v_c_2_id is null then
      7      v_retval := v_c_1_id;
      8    else
      9      v_retval := to_number(to_char(v_c_1_id)||','||to_char(v_c_2_id));
    10    end if;
    11    --return v_retval;
    12  end;
    13  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 9It can't do the to_number on the string when it expects the return value to be numeric.
    SQL has a nice NVL2 function (http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions106.htm) which you can use instead when trying to determine different output based on one of the values being null...
    SQL> ed
    Wrote file afiedt.buf
      1  with a as (select 123 as c_1_id, 234 as c_2_id from dual union all
      2             select 789, null from dual)
      3  --
      4  -- end of test data
      5  --
      6  select c_1_id, c_2_id,
      7         nvl2(c_2_id,c_1_id||','||c_2_id,c_1_id) as result
      8* from a
    SQL> /
        C_1_ID     C_2_ID RESULT
           123        234 123,234
           789            789Again, this is using implicit datatype conversion and the resultant datatype of NVL2 is determined by the first result (the second parameter) just as with decode, but because of the way it works, the first result is what it should do if the passed in first parameter is not null and therefore you can force the implicit conversion to a string datatype that way.

  • How to replace huge decode statements with lookups to some simple code/key

    I have a legacy PL/SQL application, composed of many very huge decode statements. And the most terribe one is that the guys who develops the application left the company now, leaves no documentation.
    We are trying to read and understand those PL/SQL programs, and I'm asked to replace those huge decode statements with lookups to some simple code/key tables? But I have no idea about how to design such code/key tables. Is there any one who has similar experience may help me? Besides code/key tables, any idea will be welcome.
    Thank you very much!

    Not sure what your data looks like but sometimes decode can be replaced with more appropriate functions, ie;
    SQL> with t as (
       select 'DAY' a, 30 b, null c, null d from dual union all
       select null a, null b, 'MONTH' c, 12 from dual)
    select coalesce(b,d)
    from t
    COALESCE(B,D)
               30
               12
    2 rows selected.
    SQL> with t as (
       select 'DAY' a, 30 b, null c, 0 d from dual union all
       select null a, 0 b, 'MONTH' c, 12 from dual)
    select greatest(b,d)
    from t
    GREATEST(B,D)
               30
               12
    2 rows selected.

  • Decode statement in Select line of a View Object Query

    I attempted to create a view object in expert mode with a customized query.
    The query had a decode statement in the select line of the query. The view
    object compiled correctly but gave an error when run.
    ex: select .... decode(CrpSchools.SCHOOLS_ID,null,CrpCustSchools.SCHOOL_NAME,CrpSchools.SCHOOL_NAME) SCHOOL_VALUE, ...
    from ....
    where ....
    The error was that school_value does not exist in the statement. I got the error when
    doing a vo.executeQuery().
    When I removed the decode statement everything worked correctly. Does anyone know if
    the decode statement cannont be used in the select line of a query in a view object?
    Or maybe I was linking the query column (SCHOOLS_ID) up to the view attribute (SCHOOL_VALUE) incorrectly in the
    Attribute Mappings tab of the VO wizard?

    There should be no problem using a DECODE() statement, provided that you've aliases the column as you have done.
    At design time, if you click on the (Test) button, does your query test ok?
    Are you by chance applying a custom where clause at runtime?
    If so, are you saying:
    setWhereClause("yourtable.column_alias = ?";
    or are you doing:
    setWhereClause("column_alias = ?";
    for an expert-mode query, you'll need to use the latter syntax.

  • How to determine INT and FLOAT in a DECODE statement

    Can anyone help me with the following problem:
    I have a column defined as a NUMBER(15,4). I am trying to determine the java type using the getScale() method in ResultSetMetaData. When the scale is greater than 0, then it is an float, else it is an int. In this case, the getScale() method should return 4. However, when querying with a DECODE statement on the NUMBER(15,4) field, the getScale() method always returns 0 and the value is therefore converted to an int. Anyone knows how to solve this problem?
    Thanks

    Alcides,
    Oracle NUMBER data type is mapped to "java.math.BigDecimal" class.
    You will find more information in the JDBC Developer's Guide and Reference which is part of the Oracle documentation and available from:
    http://www.oracle.com/technology/documentation/index.html
    Good Luck,
    Avi.

  • Help with Decode function

    Hello!!
    Can anyone please help me with the decode statement
    Table 1 Table2 Table3
    Id Id Code
    Volume Code
    For each of the codes in Table3 I need to find the corresponding Volume. Can I use decode in the select statement to this,
    Eg Code Volume
    ABC 20
    XYZ 10 etc etc.
    Thankyou all in advance.

    Your table structure is a little unclear from your post. I am assuming that what you posted was:
    Table 1
    Id
    Table2
    Id
    Code
    Table3
    Volume
    Code You can use decode if there are only a few values for table3. For example,
    SELECT table2.code,
    DECODE(table2.code,'ABC',10,'XYZ',20,'UNKNOWN') volume
    FROM table2
    or even
    SELECT code,DECODE(code,null,'NONE',
                      (SELECT volume FROM table3 where code=table2.code)) volume
    FROM table2However, the first will break, or at least be incorrect, if anyone adds a new code/volume pair, and is tedious if you have more than a few values. The second will likely be pretty slow if there are a large number of records in table3. The best solution would be to use a simple join rather than decode. Something like:
    SELECT table1.id, table2.code, table3.volume
    FROM table1, table2, table3
    WHERE table1.id = table2.id and
          table2.code = table3.code

  • Calling a stored proc in a decode statement

    I am having a problem calling a store procedure in a SQL statement. I am using Oracle's thin driver.
    I have been able to do the following:
    select col1,
    col2,
    SOME_STORED_PROC(var1,var2,col3)
    from some_table
    where col3 = var3
    However, when I try to call a stored procedure with-in a decode statement, the call fails. I have tested the call from a sql prompt and it works fine but it does not work when I execute the query in my Java program.
    Here is an example of what I am trying to do:
    select col1,
    col2,
    decode((select col1
    from some_other_table
    where col2 = var1), 'X',
    SOME_STORED_PROC(var1,var2,col3),
    SOME_OTHER_STORED_PROC(var2,var4,col5))
    from some_table
    where col3 = var3
    Does anyone know if this type of call is not supported in Oracle's thin driver?
    Thanks,
    Cory
    null

    I played around with a [parallel PL/SQL launcher|http://www.williamrobertson.net/feed/2008/08/parallel-plsql-launcher-update.html] a while ago, but I wouldn't call it production-ready.
    You could also [submit procedure calls in background|http://www.williamrobertson.net/feed/2005/12/job-control-object.html] using DBMS_ALERT to track completion status.

  • Error in DECODE statement

    Hi,
    I have written this decode clause but somehow its not working and giving expression error.
    SELECT
    ( DECODE
    select param_value from feed_parameter where upper(param_name) = 'SOURCEENV' and feed_id=5085 AND CLOSE_ACTION_ID IS NULL
    ),'NTSNGN','mput \\csng11p20126\risk-mgt$\app\data\rds\PLNMARS4\done\',
      'NTNYC' ,'mput \\nnyc11p20008\risk$\app\data\rds\PLNMARS4\done',
               'DONE PATH') "path"
    FROM feed_parameter;Is there any expression kind of error in this?

    Well, I will put the entire scenario in which I want to add the DECODE clause here.
    I have FEED_PARAM table having 2 columns, param_name and param_value. For some feed say "x", there are 2 diff possibilities like
    If I write a SELECT statement,
    SELECT param_name, param_value
    FROM feed_parameeter
    WHERE feed_id='X'It returns me 2 rows,
    param_name param_value
    SOURCEENV NTNYC
    DELIVERY_MODE DELIVERED
    What my requirement is
    I have to select the rows as columns from this table and at the same time use there values in the decode clause I put earlier.
    SELECT
    DECODE
    select param_value from feed_parameter where upper(param_name) = 'SOURCEENV' and feed_id=5085 AND CLOSE_ACTION_ID IS NULL
    ),'NTSNG','mput \\csng11p20126\risk-mgt$\app\data\rds\PLNMARS4\done\',
      'NTNYC' ,'mput \\nnyc11p20008\risk$\app\data\rds\PLNMARS4\done',
               'DONE PATH') "path"
    FROM feed_parameter
    where rownum=1So when for feed 'x', both the param_name and param_value needs to be found and accordingly aboVE SELECT clause with DECODE should give me the correct path.
    Actually the above select statement has to be
    decode ( select param_name, param_value from feed_parmeter, "SOURCENV" "NYNYC", AND "DELIVERYMODE" ,"DELIEVERED" THEN     " PATH"
    ))something like this.....
    Can you please suggest me how can I embed 2 clauses inside decode or some alternate way to do this
    Thanks,
    Aashish
    Edited by: Aashish S. on Mar 7, 2011 2:30 PM

Maybe you are looking for

  • Excise Invoice number not dispaly in ledger (FBL5N)

    Dear Experts, Generally Excise Invoice number display in customer Customer Ledger (FBL5N) IN Reference key 3 field. But  In some cases it is not display.  Please share possibility. Regards BK GAIKWAD

  • Error #1009 at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()

    Hello. At first sorry for my english. I have encountered problem with DataGrid control. There is DataGrid control, which have custom ItemRenderer (MulticolorDataGridItemRenderer). This DataGrid control has several properties: 1) click on a row change

  • Has there been any change in FF21 and newer regarding background music file playing?

    Access this URL : http://www.mamarocks.com/cats.htm in FF20 lets the background music associated with it play. However, accessing the same URL in FF21 and newer results with the webpage being displayed but the music associated with it does not play.

  • Can you re-export an nfs mount as an nfs share

    If so what is the downside? I'm asking because we currently have an iscsi san and a recent upgrade severely degraded iscsi connectivity. consequently can't mount my iscsi volumes. Thanks, db

  • OLE in forms

    Hi, I am trying to use OLE in forms to access objects. There is a function called FUNCTION GET_OLE_NUM (obj OLEOBJ, memberid PLS_INTEGER) RETURN oleprop NUMBER; Can anyone please tell me what this value memberid stands for Thanks in advance Padma