Pro C syntax and CASE WHEN

Hi
I'm developping an application using Pro C* in a C program. I have a problem, I would like to use a CASE WHEN statement inside a SELECT statement. I try the following code with compilation error:
EXEC SQL PREPARE pr_avor_annul FROM
INSERT INTO avor (NO_AVOR,MT_TOTL_AVOR,CD_DEVS,AC_STAT_AVOR,NO_FACT,MT_FRAS,
MT_ARTC,AC_AVOR,NO_COMP,MT_FRAS_CONT_REMB,DT_AVOR)
SELECT :vavor, mt_totl_fact + cout_livr + nvl(mt_fras_cont_remb,0), cd_devs,:vemis ,no_fact,cout_livr , mt_totl_fact, :vacavor, :vcomp, mt_fras_cont_remb,DECODE( (SELECT 0 FROM fact WHERE TO_CHAR(dt_fact)<TO_CHAR(sysdate)
AND no_fact= :vfact),dt_fact, sysdate, dt_fact)
FROM fact
WHERE no_fact = :vfact;
This code seems to be wrong but I don't know where...
Somebody can help me??
Thans a lot

Hi,
I'm not clear on the distinction you're making for type of access.
Well, to be honest, now that I've re-read that this morning I'm not completely sure what I had in mind either. I think I was thinking about using the collection in what I believe the documentation calls "slices". However, given the other information you've posted it doesn't seem like that would be a feasible alternative in any case.
I understand what you mean about varray and nested-table with the upper-bound limit for the varray's... I've not actually compared the two for performance so my idea that there may be a difference could be completely incorrect. Beyond that, creating code that only works in batches (or slices) may be less performant than what you currently have.
I hope I've not detracted from the thread and maybe someone else with more experience will have an "ah ha!" sort of observation.
Regards,
Mark

Similar Messages

  • Syntax for CASE / WHEN in SNP Macros.

    Dear APO Gurus,
    I'm having problems using CASE when in SNP macros, even though I've tried quite  a few syntaxes.
    could someone please tell me how to Use CASE WHEN (WHEN WHEN WHEN...) ENDCASE in macros ? this would save me an awful lot of IF
    Thanks in advance,
    Hugues

    Hi,
    you can import an example macro to see how the CASE usage works. In order to do so, perform the following.
    1.) Enter Makro Builder and enter your new macro book
    2.) In the Menu, choose "Edit" -> "Import macros"
    3.) Choose "SAP Example and template macros" as reference book
    4.) use "Using the Case statement" as reference macro.
    This will import the example macro which you can take as reference.
    Best regards
    Rico Frenzel

  • Subquery  and case when

    hi
    i have the following script
    if run the subquery individually it rgives me result
    but when try to run the whiole query i get error
    at line as from kyword not found where expected
    the query is
    SELECT
    Q2.BRANCH,
    Q2.NAMETITLE,
    Q2.PRD,
    Q2.LONGNAME,
    Q2.BALANCE1,
    Q2.BALANCE2,
    Q2.BALANCE3,
    Q2.BALANCE4,
    Q2.BALANCE5,
    Q1.REMARK
    FROM
    SELECT
    PRDACCTID PRD,
    LBRCODE BRANCH,
    case
    when
         (prdacctid,lbrcode) in 
              select prdacctid,lbrcode from d010053
                     where (lbrcode,prdacctid)
              in (
                   select lbrcode,prdacctid from d009022 where acctstat<>3
                   and (lbrcode,trim(substr(prdacctid,1,8))) in
                        (select lbrcode,trim(prdcd) from d009021 where moduletype in (10,11,12))
         and nametype=1
    then
         'yes'
    else
         'no'
    end
    ) as remark
    FROM D009022
    WHERE ACTSTAT<>3
    AND TRIM(SUBSTR(PRDACCTID,1,8)) IN ('SB','CD','CC')
       )Q1,
              SELECT
              BRANCH,
              NAMETITLE,
              PRD,
              LONGNAME,
              BALANCE1,
              BALANCE2,
              BALANCE3,
              BALANCE4,
              BALANCE5,
              FROM
                        SELECT A.*,B.* ,
                        A.PRDACCTID PRD,
                        A.LBRCODE BRANCH,
                        RANK() OVER(PARTITION BY B.LBRCODE,B.PRDACCTID ORDER BY B.CBLDATE DESC) AS RNK
                        FROM D009022 A,D010014 B
                        WHERE A.LBRCODE=B.LBRCODE
                        AND A.PRDACCTID=B.PRDACCTID
                        AND CBLDATE<'01-APR-09'
                        AND A.ACCTSTAT!=3
                        AND (TRIM(SUBSTR(A.PRDACCTID,1,8)),A.LBRCODE) IN
                        (SELECT TRIM(PRDCD),LBRCODE FROM D009021 WHERE MODULETYPE IN (10,11,12,13,14,30))
                   WHERE RNK=1
       )Q2
    WHERE Q1.BRANCH=Q2.BRANCH
    AND Q1.PRD=Q2.PRD
    /

    If you formatted your query better, then you might have spotted the issue yourself...
    In your Q2 query, you've got "BALANCE5 *,* FROM ..." so remove the extra comma, like so:
    SELECT Q2.BRANCH,
           Q2.NAMETITLE,
           Q2.PRD,
           Q2.LONGNAME,
           Q2.BALANCE1,
           Q2.BALANCE2,
           Q2.BALANCE3,
           Q2.BALANCE4,
           Q2.BALANCE5,
           Q1.REMARK
    FROM  (SELECT PRDACCTID PRD,
                  LBRCODE BRANCH,
                  case when (prdacctid,lbrcode) in (select prdacctid,lbrcode
                                                    from   d010053
                                                    where  (lbrcode,prdacctid) in (select lbrcode,prdacctid
                                                                                   from   d009022
                                                                                   where  acctstat != 3
                                                                                   and    (lbrcode,trim(substr(prdacctid,1,8))) in (select lbrcode,trim(prdcd)
                                                                                                                                    from   d009021
                                                                                                                                    where  moduletype in (10,11,12)))
                                                    and    nametype=1)
                             then 'yes'
                       else 'no'
                  end as remark
           FROM   D009022
           WHERE  ACTSTAT != 3
           AND    TRIM(SUBSTR(PRDACCTID,1,8)) IN ('SB','CD','CC')) Q1,
          (SELECT BRANCH,
                  NAMETITLE,
                  PRD,
                  LONGNAME,
                  BALANCE1,
                  BALANCE2,
                  BALANCE3,
                  BALANCE4,
                  BALANCE5    -- removed extra comma from here
           FROM   (SELECT A.*,B.* ,
                          A.PRDACCTID PRD,
                          A.LBRCODE BRANCH,
                          RANK() OVER(PARTITION BY B.LBRCODE,B.PRDACCTID ORDER BY B.CBLDATE DESC) AS RNK
                   FROM   D009022 A,D010014 B
                   WHERE  A.LBRCODE=B.LBRCODE
                   AND    A.PRDACCTID=B.PRDACCTID
                   AND    CBLDATE < to_date('01/04/2009', 'dd/mm/yyyy')
                   AND    A.ACCTSTAT != 3
                   AND    (TRIM(SUBSTR(A.PRDACCTID,1,8)),A.LBRCODE) IN (SELECT TRIM(PRDCD),LBRCODE
                                                                        FROM   D009021
                                                                        WHERE  MODULETYPE IN (10,11,12,13,14,30)))
           WHERE  RNK=1) Q2
    WHERE  Q1.BRANCH = Q2.BRANCH
    AND    Q1.PRD = Q2.PRDEdited by: Boneist on 06-Aug-2009 10:20
    Added in the to_date around the date which I forgot to point out earlier (but BluShadow has already done so!)
    Also added in a comment on the line I removed the extra comma from.

  • Combine greatest, sum, and case when

    All,
    I have the following view
    Select table1.field1,
    greatest(sum(table1.field3) - case when table1.oneorzerocolumn=1 then table1.field2 else table1.field4 end,0) as NetAbove0
    from table1
    group by table1.field1;
    I seem to be having trouble figuring out the best way to accomplish this, though, as whenever I try to execute this query I get not a valid group by expression. How can I combine the greatest function and the aggregate sum function without creating a separate view?
    Thanks in advance.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE     11.2.0.2.0     Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Edited by: 929933 on Mar 14, 2013 1:32 PM

    929933 wrote:
    @ sb92075 would you care to elaborate on exactly what was missing?If you would care to read the link sb92075 posted you will understand by yourself:
    What is particularly important in that FAQ is:
    6) Tables/Indexes
    7) Sample Data
    8) Expected Output
    9) Formatting with {noformat}{noformat} Tags
    You have posted an unformatted code and did not provide proper input.
    Coming to your problem the issue is quite clear. If you use a GROUP BY clause then all field which are not returned as aggregated function shall be included in the GROUP BY clause.
    And this has a logic.
    Your initial query (formatted in a decent way):SELECT table1.field1
    , GREATEST (SUM (table1.field3)
    - CASE
    WHEN table1.oneorzerocolumn = 1 THEN
    table1.field2
    ELSE table1.field4
    END, 0) AS netabove0
    FROM table1
    GROUP BY table1.field1;
    is not correct.
    The column used in the query table1.oneorzerocolumn, table1.field2 and table1.field4 are not part of the GROUP BY and not used in aggregation functions.
    So how could you determine the value, i.e. table1.oneorzerocolumn, if for the same value of table1.field1 you have different values of table1.oneorzerocolumn?
    You are aggregating by field1 so which value do you want to use for non aggregated columns?
    Everything will be easier to understand if you can post some sample data, explain the logic you want to apply and post the expected output for the sample data you have posted.
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • MacBook Pro display scrambles and restarts when lifted up

    I have a two year old MacBook Pro (13in Mid-2012 model) running on OS X Yosemite. The device had a faulty HDD connector and it was replaced a few months back. Now if I lift the device when it is on, the display gets scrambled and freezes for a second and restarts. Also the MBP gets very hot during usage.
    The MBP was purchased and used in India, but since last month after I moved to Singapore the magsafe adapter is getting very hot during usage.
    MacBook Pro Mid-2012
    13inch
    4 GB RAM
    500GB HDD

    Your GPU is damaged. The failing NVIDEA is very common with your model. So much so, Apple had a free replacement program until Dec 2012. Unfortunately you will need a new logic board. This will cost $750-900. I suggest purchasing a new machine.
    MacBook Pro: Distorted video or no video issues - Support - Apple

  • Is my Mac pro being cleaned and updated when the little wheel turns?

    Is the little wheel a good thing when it's moving? It seems to be cleaning or updating.Or is someone trying to hack me? Whoever wants to answer I'll appreciate it:)

    If you have a 5770 gpu there is no DVD to boot from (one reason to have Lion).
    If you clone your system, you have a safety net, and CCC can do a file integrity checksum on copies.
    If you reinstall, don't install on the same drive, keep it for backup.
    Later you may need or want to do a 3-way write (writing zeroes is not guarantee it will map out bad sectors which can be one reason it never seemed to repair itself) and reinstalling on same drive may only hide and be a temporary fix.
    To so backup clone so you can have another drive to boot from and run system maintenance (and you could do a clean install too, only needs 20GB to setup an emergency system). Or you have 10.7.5 or later and then you have Recovery Mode.
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Recovery Mode
    http://support.apple.com/kb/HT4718
    How to clone your system:http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
    http://www.macperformanceguide.com/blog/2012/20120711_2-MacPro-internal-clone-ba ckup.html
    Using Cloning as a Backup Strategy

  • Macbook Pro (2011) freeze and lag when watching youtube etc

    My macbook have start to freezing and are general slow in my point of view. Really frustrating, how can I fix this!! ? Tried to fix permisions and so on

    Firstly, it's never supposed to be on your lap. Read the manual warning regarding this. It's not a laptop, it's a notebook computer. Keep on a flat surface preferable with the rear elevated at least 3/4 to  1" to provide adequate ventilation.
    Secondly, yes these computers do run hot because of the processor speed, GPU, and Retina screen.
    Thirdly, refer to More Like This items listed on the right side of this page.

  • Using more than one case when statement

    Hi there,
    I have a question on using case when statements.
    Currently I have a table where it shows me mulitple dates.
    Order Saledate TransferDate StartDate Enddate GetDate
    I have created a where statement to show me records against the transferdate dependant if it appears within the date range of the year, or if it appears within the startdate and today's date.
    (lpatran.trandate between targets.startdate
    and (case when targets.enddate < getdate() then targets.enddate else getdate() end))
    However on some of the records the transfer date is null, and so they want to use the saledate as the date to use.
    So I created
    (case when Lpatran.trandate is not null then (Lpatran.trandate between targets.startdate
    and (case when targets.enddate < getdate() then targets.enddate else getdate()))
    else (lpatran.saledate between targets.startdate
    and (case when targets.enddate < getdate() then targets.enddate else getdate())) end )
    However it gives me an incorrect syntax near the word ‘between ‘ 
    Is there a simple fix for this or does sql not allow me to do this?

    I have created a new column called transferdate and done a case when statement
    CASE
    WHEN lpatran.trandate
    IS
    NULL
    THEN lpatran.saledate
    ELSE lpatran.trandate
    END
    AS Transferdate,
    Then created a temptable and did a select * from temptable.  Created a where statement from transferdate, which does work and gives me the correct data. 
    TransferDate between startdate
    and(case
    when enddate
    <
    getdate()
    then enddate
    else
    getdate()
    end))
    However I wanted to know if there was a way of obtaining the same data without having to use the temptable ?

  • Case when question

    Hi All,
    Is it possible to use case-when statement in this SQL query?
    select SUB_ID, count(T_ID),sum(TIME)
    from TABLE_A
    where SUB_ID <> ' '
    and STARTDATE between :P6_DATE_FROM and :P6_DATE_TO
    CASE :P6_FILTER_BY
    WHEN '1' THEN 'and SUB_ID like :P6_FILTER_BY_TEXT || ''@%'' '
    WHEN '2' THEN 'having sum(TIME) >= :P6_FILTER_BY_TEXT '
    END
    group by SUB_ID
    as it is it seems not to work...
    thanks
    Liron

    Hi,
    Is it possible to use case-when statement in this SQL query?Yes
    First of all you are using the wrong syntax of CASE.
    The correct syntax is :
       CASE
            WHEN var1 = 1  THEN
                       'One'
            WHEN var 2 = 2 THEN
                 'Two'
         ELSE
            'Three'
         ENDTell us your requirement we might suggest something ?
    Regards

  • How to use case when statements in ODI

    I need to put conditional logic before DVM look up in ODI. In the expression editor I put the following statement:-
    CASE WHEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME='RCS' THEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME=EBIZ_CELL.CELL_DATA
    WHEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME='FDC' THEN CONCAT(POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME,POC_JOURNAL_TEMP_SOURCE_TBL.BOOK_CODE)=EBIZ_CELL.CELL_DATA
    END
    It did not work,
    Under Operators ->All Executions, found the error:-
    905 : 42000 : java.sql.SQLException: ORA-00905: missing keyword
    The description in Session Task contained:-
    select     
         C1_JOURNAL_TEMPL
    from     APPS.POC_JOURNAL_TEMP_SOURCE_TBL POC_JOURNAL_TEMP_SOURCE_TBL, APPS.C$_0POC_JOURNAL_TEMP_TARGET_TB
    where     
         (1=1)
    And (CASE
    WHEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME='RCS'
    THEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME=C2_CELL_DATA
    WHEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME='FDC'
    THEN CONCAT(POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME,POC_JOURNAL_TEMP_SOURCE_TBL.BOOK_CODE)=C2_CELL_DATA
    END)
    Checked the above code in PL/SQL Developer but it gave errors.
    In PL/SQL developer tried to check a simple query using case-when but even that is giving errors in the case-when portion.
    The query is as follows:-
    select phase_code, accounting_period, sum(eff_cc) as BD_Eff_QTD
    from prj_detail
    where
    case POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME
    when 'EXT'
    then
    1
    when 'RAC'
    then
    2
    when 'XXX'
    then
    3
    else
    end
    I would like to know what is wrong with the above code.
    Please let me know what is the correct way of using case-when in PL/SQL as well as in ODI.

    Your ODI case statement and PL/SQL Case statement both looks confusing.
    You are writing case statement under where clause which is not a good practise. If you want to implement logic like-
    select a,b,c from <table>
    where
    when cond^n^ 1 then do 1
    when cond^n^ 2 then do 2
    then better you seperate your query for each filter and do a union, in other words-
    select a,b,c from <table>
    where cond^n^ 1
    union
    select a,b,c from <table>
    where cond^n^ 2
    If you are writing case staement to retrieve a value/column (EBIZ_CELL.CELL_DATA) then no need to include it under filter.
    ODI case for column EBIZ_CELL.CELL_DATA will be:
    CASE
    WHEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME='RCS'
    THEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME
    WHEN POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME='FDC'
    THEN CONCAT(POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME,POC_JOURNAL_TEMP_SOURCE_TBL.BOOK_CODE)
    END
    Pl/SQL query-
    select phase_code, accounting_period,
    case POC_JOURNAL_TEMP_SOURCE_TBL.APPLICATION_NAME
    when 'EXT'then 1
    when 'RAC' then 2
    when 'XXX' then 3
    else 'default value' --- (if no else needed then can also remove else part)
    end,
    sum(eff_cc) as BD_Eff_QTD
    from prj_detail
    Suggested as per what is understood, hope it helps.
    Edited by: 939451 on Jul 5, 2012 12:47 AM
    Edited by: 939451 on Jul 5, 2012 12:48 AM

  • Returne between dates in case when

    i want to return between dates values on case when clauses on where clauses
    like
    and
    (case
    when (cc.segment3 NOT like '4%' and cc.segment3 NOT like '5%')
    then (between to_date('01/07/2012','dd/mm/rrrr') and to_date('31/07/2012','dd/mm/rrrr'))
    when (cc.segment3 like '4%' or cc.segment3 like '5%')
    then (between to_date('01/07/2012','dd/mm/rrrr') and to_date('31/07/2012','dd/mm/rrrr'))
    end) h.default_effective_date
    the problem is in the = operator but i don't know haw to use this
    any help??

    ok here is the full coad
    select
    DECODE(SUBSTR (CC.segment1, 1, 1), 'J', 'OFFSHORE', 'I', 'OFFSHORE','IN COUNTRY')branch_nature,
    decode(cc.segment1,'A6260','Head Office','Branches') branch_type,
    cc.segment1,
    decode (h.currency_code,'EGP','mahly','agnaby') currency_code ,
    cc.segment3,
    t.description,
    CASE
    when h.currency_code in('EGP') then sum(l.entered_cr)
    else 0
    end entered_cr,--sum(l.entered_cr) entered_cr,
    CASE
    when h.currency_code in('EGP') then sum(l.entered_dr)
    else 0
    end entered_dr, --sum(l.entered_dr) entered_dr,
    CASE
    when h.currency_code NOT in('EGP') then sum(l.accounted_cr)
    else 0
    end accounted_Dr,--0 accounted_Dr,
    CASE
    when h.currency_code NOT in('EGP') then sum(l.accounted_dr)
    else 0
    end accounted_cr --0 accounted_cr
    from apps.gl_je_headers h,
    apps.gl_je_lines L,
    apps.gl_code_combinations cc,
    apps.fnd_flex_values_tl t ,
    applsys.fnd_user us,
    apps.gl_je_batches b
    where h.status = 'P'
    and us.user_id = h.Created_by
    --and h.currency_code in('EGP')
    and l.je_header_id = h.je_header_id
    and l.code_combination_id =cc.code_combination_id
    and cc.segment3 = t.flex_value_meaning
    and cc.segment3 in ('31000020','40505020')
    and cc.segment1 in ('A5550','B0010')
    -- and (DECODE(SUBSTR (CC.segment1, 1, 1), 'J', 'OFFSHORE', 'I', 'OFFSHORE','IN COUNTRY') =:P_branch_nature OR :P_branch_nature is NULL)
    --and (decode(cc.segment1,'A6260','Head Office','Branches') = :P_BRANCH_TYPE OR :P_BRANCH_TYPE is NULL)
    and t.description is not null
    and t.language ='AR'
    and h.je_batch_id = b.je_batch_id
    and
    (case
    when (cc.segment3 NOT like '4%' and cc.segment3 NOT like '5%')
    then (between to_date(:P_Start_date,'dd/mm/rrrr') and to_date(:P_END_date,'dd/mm/rrrr'))
    when (cc.segment3 like '4%' or cc.segment3 like '5%')
    then (between to_date(:P_Start_date2,'dd/mm/rrrr') and to_date(:P_END_date,'dd/mm/rrrr'))
    end) h.default_effective_date
    and (case
    when (cc.segment3 like '4%' or cc.segment3 like '5%')
    then (h.default_effective_date)
    end) between to_date('01/07/2012','dd/mm/rrrr') and to_date('31/07/2012','dd/mm/rrrr')*/
    group by cc.segment3 , t.description , cc.segment1,h.currency_code;
    the part between tages need to modigied

  • Error in case when

    hi friends
        i have below query which is throwing error  'missing expression' which is on bold.
        please correct the query.
       SELECT max(lv.lv_lastupdate)  INTO v_old_date FROM loanable_value lv
       WHERE lv.lv_rm_cust_id= p_gfcid AND lv.lv_year= p_year
       AND  (CASE  WHEN     p_Quarter ='Q1'  THEN    lv.lv_month IN ('Jan','Feb','Mar')  END ) ;

    RajnishChauhan wrote:
    hi friends
        i have below query which is throwing error  'missing expression' which is on bold.
        please correct the query.
       SELECT max(lv.lv_lastupdate)  INTO v_old_date FROM loanable_value lv
       WHERE lv.lv_rm_cust_id= p_gfcid AND lv.lv_year= p_year
       AND  (CASE  WHEN     p_Quarter ='Q1'  THEN    lv.lv_month IN ('Jan','Feb','Mar')  END ) ;
    How do you expect us to correct it if we don't know what you want?
    However, I'm guessing you want
    and (
    (p_quarter = 'Q1' and lv.lv_month in ('Jan','Feb','Mar'))
    or (p_quarter = 'Q2' and lv.lv_month in ('Apr','May','Jul'))
    or..
    difficulties you could have avoided if you'd not split things up as lv_year,lv_month etc. and just kept the field as a single DATE.
    Then it would be a simple as
    where to_char(lv.lv_date,'Q')=p_quarter
    where p_quarter is 1,2,3 or 4

  • Filter in business model using case when

    Dear Gurus,
    I have written this syntax on business logical layer WHERE CLAUSE:
    case  when 'All' = 'All' then upper(substring(Fact_Medication.DOCUMENT_ID_EXT from 1 for 3))
    else 'All' end
    *= upper(substring(Fact_Medication.DOCUMENT_ID_EXT from 1 for 3)*
    But, it was take too long to appear in dashboard, I'm afraid the syntax not proper.
    Does anyone know how to show all the data in oracle pl sql / obiee syntax ?
    I mean in Microsoft SQL we can use this Select * from A where column=''
    Please help this is urgent
    Regards
    JOE

    Hi,
    Thank for reply.
    This is my syntax (Revised):
    case when VALUEOF(NQ_SESSION."LOGIN")= 'All' then upper(substring(Fact_Medication.DOCUMENT_ID_EXT from 1 for 3))
    else VALUEOF(NQ_SESSION."LOGIN") end
    = upper(substring(Fact_Medication.DOCUMENT_ID_EXT from 1 for 3)
    I want if Login variable='All' then show all data, if not then show specific data.
    I though my query is right but it takes too long to appear in dashboard.
    Please help
    Regards
    JOE

  • Premiere Pro CC 2014 and AME using only 25% of CPU

    Hello all,
    I've been having this problem with Premiere PRO CC 2014 and that when exporting it uses only 25% of my CPU thus taking 4 times longer than CS6 to export the same file project. I read a couple of forums with people having the same problems, I tired disabling CPU parking, disabling "Import sequences natively" in AME but no result.
    Quick PC specs:
    i5 4670
    16GB of RAM
    GeForce GTX 760 4GB DDR5
    Everything for Adobe including the video files in use are of Samsung's SSD drives. Using CUDA as the render engine.
    Currently one hour and 4 minutes clip in 4k takes about 52 hours to encode in Premiere CC 2014 and 9hr to encode the same project in CS6. Any ideas?

    Take a look at your GPU usage with something like GPU-Z to see if both Premiere versions are using the same amount of MPE GPU hardware acceleration.  Actually with CC 2014 it might work faster because Adobe added in more 4k effects/features for GPU acceleration.
    You might want to download our Premiere Pro BenchMark (PPBM) and run it on both versions.  The H.264 very complex timeline has 4K material in it and usually shows Premiere Pro 8.xxx take about only half the time that Premiere Pro CS6 take to export that same timeline.

  • I want to buy a hard case for my macbook pro, but I don't know what year it is. When I use the serial number to try and find out, all it says is, "~VIN,MacBook Pro (15-inch Glossy)". When I type that into amazon for a case it gives me nothing!

    I want to buy a hard case for my macbook pro, but I don't know what year it is. When I use the serial number to try and find out, all it says is, "~VIN,MacBook Pro (15-inch Glossy)". When I type that into amazon for a case it gives me nothing!

    Hi T,
    Either of these will give you the info you seek:
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html

Maybe you are looking for

  • Login with encrypted password doesn't work

    Hi, simple problem: in login settings with encrypted password option on The login doesn't work => Error:"AFTER.Trigger_Login_CheckLogin*" (tested with a user that has an encrypted password) without encrypted password The login works (tested with a us

  • 1Z0-035 Oracle9i New Features for Oracle7.3 and Oracle8 OCPs ...

    Hi All I am preparing for OPP exam 1Z0-035. Oracle9i New Features for Oracle7.3 and Oracle8 OCPs .. Can somebody please let me know where can I get the Oracle Material (pdf) for the same. or any good book i can purchase. Thanks Shahid [email protecte

  • JDBC Thin Server-side Driver 8.1.6

    The readme.txt for the JDBC Thin driver talks about a JDBC Thin driver for clients and a JDBC Thin Server-side driver for servers. Where is the Server-side driver? In Oracle?

  • Assert Thrown at IComposeScanner- QueryAttributeAt()

    Hi, I implemented a custom paragraph attribute that has a boolean value to tell me I my plugin changed the justification settings of that paragraph. How ever if I try to get the value of the attribute, I get an assert when executing: InterfacePtr<con

  • Portal Content Guide for understanding the MDM Configuration.

    hi friends, I need Portal Content Guide for understanding the MDM Configuration pdf file.. please send that file in pdf format thanks ramu