Select statement inside a select statement is not working as thought it would.

Hi all,
I have problem in the following programming code:
SELECT ACCT_FD_NO,ACCT_CUST_CODE, STAUS, FDR_STAUS, AMOUNT,INT_RATE ,MATURITY_DATE,(AMOUNT*(INT_RATE/100)/365)no_of_days,
(AMOUNT*(INT_RATE/100)/365)*((TO_DATE(:X_PRM_ST_DT)-TO_DATE(:X_PRM_YR_END_DT)))tot_int FROM KEC_FDACCT_MSTR
WHERE acct_type NOT  IN(1,2,3,4,5,6,13,14,15,16,17,18,25,26,27,28,29,30) AND FDR_STAUS='R' AND STAUS='E'
AND  ACCT_OPN_DT>:X_PRM_YR_END_DT
AND ACCT_FD_NO IN(SELECT OLD_FDR_NO FROM KEC_FDACCT_MSTR WHERE FDR_STAUS='R' AND acct_type NOT  IN(1,2,3,4,5,6,13,14,15,16,17,18,25,26,27,28,29,30)
AND  ACCT_OPN_DT>:X_PRM_YR_END_DT);
The following is the Table KEC_FDACCT_MSTR with the columns shown with data.
ACCT_FD_NO
ACCT_CUST_CODE
ACCT_TYPE
ACCT_OPN_DT
FDR_STAUS
STAUS
AMOUNT
INT_RATE
GROUP_TYPE
OLD_FDR_NO
MATURITY_DATE
250289
3
25
07/12/2012
R
E
140,000.00
11.50
12MNS
60002
06/12/2013
250290
3
25
07/12/2012
R
E
140,000.00
11.50
12MNS
60001
06/12/2013
270968
4
27
14/07/2013
M
E
450,000.00
12.50
36MNS
30227
13/07/2016
330516
9
33
08/12/2012
R
E
50,000.00
12.50
36MNS
90001
07/12/2015
320217
11
32
08/12/2012
R
E
50,000.00
12.00
24MNS
90002
07/12/2014
330513
12
33
08/12/2012
R
E
100,000.00
12.50
36MNS
90003
07/12/2015
360017
13
36
01/12/2012
R
E
50,000.00
12.50
36MSH
120002
30/11/2015
360018
15
36
05/12/2012
R
E
100,000.00
12.50
36MSH
120004
04/12/2015
270743
22
27
09/12/2012
R
E
50,000.00
12.50
36MNS
30004
08/12/2015
270744
22
27
09/01/2013
R
E
200,000.00
12.50
36MNS
30112
08/01/2016
270316
25
27
07/12/2012
R
E
70,000.00
12.50
36MNS
30007
06/12/2015
360019
29
36
05/12/2012
R
E
100,000.00
12.50

This is the table on which i'm writing the code:
ACCT_FD_NO
ACCT_CUST_CODE
ACCT_OPN_DT
FDR_STAUS
STAUS
AMOUNT
INT_RATE
OLD_FDR_NO
SAP_CODE
MATURITY_DATE
350001
743
17-Nov-10
M
D
200000
12.00
323055
16-Nov-12
350002
734
18-Nov-10
R
D
300000
12.00
100018
323055
17-Nov-12
350003
736
19-Nov-10
R
D
150000
12.00
100015
323055
18-Nov-12
350004
737
20-Nov-10
R
D
500000
12.00
100016
323055
19-Nov-12
350005
735
19-Nov-10
M
D
150000
12.00
323055
18-Nov-12
350006
738
20-Nov-10
M
D
1500000
12.00
323055
19-Nov-12
350007
734
19-Nov-10
R
D
200000
12.00
100013
323055
18-Nov-12
350008
83
30-Nov-10
M
D
50000
12.00
323055
29-Nov-12
350009
136
12-Dec-10
R
D
200000
12.00
100006
323055
11-Dec-12
350010
716
12-Nov-11
M
D
200000
12.00
323055
11-Nov-13
350011
746
16-Nov-12
R
E
200000
12.00
120054
323055
15-Nov-14
350012
731
13-Nov-12
R
E
400000
12.00
290001
323055
12-Nov-14
350013
3,906
10-Sep-13
N
E
100000
12.00
323055
9-Sep-15
350014
3,907
18-Sep-13
N
E
50000
12.00
323055
17-Sep-15
360001
811
4-Oct-10
M
D
100000
12.50
323056
3-Oct-13
360002
535
7-Oct-10
P
D
10000000
12.50
323056
6-Oct-13
360003
527
7-Oct-10
M
D
4000000
12.50
323056
6-Oct-13
360004
54
19-Oct-10
M
D

Similar Messages

  • Case statement and Decode function both are not working in Select cursor.

    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement.
    See the first column in select (PAR_FLAG), I need to have this evaluated along with other fields. Can you please suggest some thing to make this work. And also I would like to
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Author : Amit Juneja
    Date : 06/20/2011
    Description:
    Updates the Diamond MEMBER_MASTER table with the values from
    INC.MEM_NJ_HN_MEMBER_XREF table.
    declare
    rec_cnt number(12) := 0;
    commit_cnt number(4) := 0;
    cursor select_cur is
    Select DECODE(1,
    (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY'))),
    'Y',
    'N') PAR_FLAG,
    H.SEQ_ELIG_HIST,
    H.SEQ_MEMB_ID,
    H.SEQ_SUBS_ID,
    H.SUBSCRIBER_ID,
    H.PERSON_NUMBER,
    H.EFFECTIVE_DATE,
    H.TERM_DATE,
    H.TERM_REASON,
    H.RELATIONSHIP_CODE,
    H.SEQ_GROUP_ID,
    H.PLAN_CODE,
    H.LINE_OF_BUSINESS,
    H.RIDER_CODE_1,
    H.RIDER_CODE_2,
    H.RIDER_CODE_3,
    H.RIDER_CODE_4,
    H.RIDER_CODE_5,
    H.RIDER_CODE_6,
    H.RIDER_CODE_7,
    H.RIDER_CODE_8,
    H.MEDICARE_STATUS_FLG,
    H.OTHER_STATUS_FLAG,
    H.HIRE_DATE,
    H.ELIG_STATUS,
    H.PREM_OVERRIDE_STEP,
    H.PREM_OVERRIDE_AMT,
    H.PREM_OVERRIDE_CODE,
    H.SEQ_PROV_ID,
    H.IPA_ID,
    H.PANEL_ID,
    H.SEQ_PROV_2_ID,
    H.SECURITY_CODE,
    H.INSERT_DATETIME,
    H.INSERT_USER,
    H.INSERT_PROCESS,
    H.UPDATE_DATETIME,
    H.UPDATE_USER,
    H.UPDATE_PROCESS,
    H.USER_DEFINED_1,
    H.SALARY,
    H.PEC_END_DATE,
    H.REASON_CODE,
    H.PEC_WAIVED,
    H.BILL_EFFECTIVE_FROM_DATE,
    H.BILLED_THRU_DATE,
    H.PAID_THRU_DATE,
    H.SUBSC_DEPT,
    H.SUBSC_LOCATION,
    H.USE_EFT_FLG,
    H.BENEFIT_START_DATE,
    H.SEQ_ENROLLMENT_RULE,
    H.MCARE_RISK_ACCRETION_DATE,
    H.MCARE_RISK_DELETION_DATE,
    H.MCARE_RISK_REFUSED_DATE,
    H.COMMENTS,
    H.USER_DEFINED_2,
    H.USER_DEFINED_3,
    H.RATE_TYPE,
    H.PCPAA_OCCURRED,
    H.PRIVACY_ON,
    H.PCP_CHANGE_REASON,
    H.SITE_CODE,
    H.SEQ_SITE_ADDRESS_ID,
    PM.seq_prov_id rendered_prov
    from hsd_member_elig_history H,
    INC.PCP_REASSIGN_RPRT_DATA P,
    hsd_prov_master PM
    where P.subscriber_id = H.subscriber_id
    and P.rendered_pcp = PM.provider_ID
    and H.elig_status = 'Y'
    and (H.term_date is NULL or H.term_date >= last_day(sysdate))
    order by H.Seq_memb_id;
    begin
    for C in select_cur loop
    rec_cnt := rec_cnt + 1;
    update hsd_member_elig_history
    set term_date = TRUNC(SYSDATE - 1),
    term_reason = 'PCPTR',
    update_datetime = SYSDATE,
    update_user = USER,
    update_process = 'TD33615'
    where seq_elig_hist = C.seq_elig_hist
    and seq_memb_id = C.seq_memb_id;
    INSERT INTO HSD_MEMBER_ELIG_HISTORY
    (SEQ_ELIG_HIST,
    SEQ_MEMB_ID,
    SEQ_SUBS_ID,
    SUBSCRIBER_ID,
    PERSON_NUMBER,
    EFFECTIVE_DATE,
    TERM_DATE,
    TERM_REASON,
    RELATIONSHIP_CODE,
    SEQ_GROUP_ID,
    PLAN_CODE,
    LINE_OF_BUSINESS,
    RIDER_CODE_1,
    RIDER_CODE_2,
    RIDER_CODE_3,
    RIDER_CODE_4,
    RIDER_CODE_5,
    RIDER_CODE_6,
    RIDER_CODE_7,
    RIDER_CODE_8,
    MEDICARE_STATUS_FLG,
    OTHER_STATUS_FLAG,
    HIRE_DATE,
    ELIG_STATUS,
    PREM_OVERRIDE_STEP,
    PREM_OVERRIDE_AMT,
    PREM_OVERRIDE_CODE,
    SEQ_PROV_ID,
    IPA_ID,
    PANEL_ID,
    SEQ_PROV_2_ID,
    SECURITY_CODE,
    INSERT_DATETIME,
    INSERT_USER,
    INSERT_PROCESS,
    UPDATE_DATETIME,
    UPDATE_USER,
    UPDATE_PROCESS,
    USER_DEFINED_1,
    SALARY,
    PEC_END_DATE,
    REASON_CODE,
    PEC_WAIVED,
    BILL_EFFECTIVE_FROM_DATE,
    BILLED_THRU_DATE,
    PAID_THRU_DATE,
    SUBSC_DEPT,
    SUBSC_LOCATION,
    USE_EFT_FLG,
    BENEFIT_START_DATE,
    SEQ_ENROLLMENT_RULE,
    MCARE_RISK_ACCRETION_DATE,
    MCARE_RISK_DELETION_DATE,
    MCARE_RISK_REFUSED_DATE,
    COMMENTS,
    USER_DEFINED_2,
    USER_DEFINED_3,
    RATE_TYPE,
    PCPAA_OCCURRED,
    PRIVACY_ON,
    PCP_CHANGE_REASON,
    SITE_CODE,
    SEQ_SITE_ADDRESS_ID)
    values
    (hsd_seq_elig_hist.nextval,
    C.SEQ_MEMB_ID,
    C.SEQ_SUBS_ID,
    C.SUBSCRIBER_ID,
    C.PERSON_NUMBER,
    trunc(SYSDATE),
    C.TERM_DATE,
    C.TERM_REASON,
    C.RELATIONSHIP_CODE,
    C.SEQ_GROUP_ID,
    C.PLAN_CODE,
    C.LINE_OF_BUSINESS,
    C.RIDER_CODE_1,
    C.RIDER_CODE_2,
    C.RIDER_CODE_3,
    C.RIDER_CODE_4,
    C.RIDER_CODE_5,
    C.RIDER_CODE_6,
    C.RIDER_CODE_7,
    C.RIDER_CODE_8,
    C.MEDICARE_STATUS_FLG,
    C.OTHER_STATUS_FLAG,
    C.HIRE_DATE,
    C.ELIG_STATUS,
    C.PREM_OVERRIDE_STEP,
    C.PREM_OVERRIDE_AMT,
    C.PREM_OVERRIDE_CODE,
    C.SEQ_PROV_ID,
    C.IPA_ID,
    C.PANEL_ID,
    C.SEQ_PROV_2_ID,
    C.SECURITY_CODE,
    SYSDATE,
    USER,
    'TD33615',
    SYSDATE,
    USER,
    'TD33615',
    C.USER_DEFINED_1,
    C.SALARY,
    C.PEC_END_DATE,
    C.REASON_CODE,
    C.PEC_WAIVED,
    C.BILL_EFFECTIVE_FROM_DATE,
    C.BILLED_THRU_DATE,
    C.PAID_THRU_DATE,
    C.SUBSC_DEPT,
    C.SUBSC_LOCATION,
    C.USE_EFT_FLG,
    C.BENEFIT_START_DATE,
    C.SEQ_ENROLLMENT_RULE,
    C.MCARE_RISK_ACCRETION_DATE,
    C.MCARE_RISK_DELETION_DATE,
    C.MCARE_RISK_REFUSED_DATE,
    C.COMMENTS,
    C.USER_DEFINED_2,
    C.USER_DEFINED_3,
    C.RATE_TYPE,
    C.PCPAA_OCCURRED,
    C.PRIVACY_ON,
    C.PCP_CHANGE_REASON,
    C.SITE_CODE,
    C.SEQ_SITE_ADDRESS_ID);
    commit_cnt := commit_cnt + 1;
    if (commit_cnt = 1000) then
    dbms_output.put_line('Committed updates for 1000 records.');
    commit;
    commit_cnt := 0;
    end if;
    end loop;
    commit;
    dbms_output.put_line('Total number of MEMBER_ELIG_HISTROY records inserted : ' ||
    rec_cnt);
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    end;

    user10305724 wrote:
    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. Please define what you mean by not working even if your computer screen is near the internet we can't see it.
    You should also look at the FAQ about how to ask a question
    SQL and PL/SQL FAQ
    Particularly *9) Formatting with {noformat}{noformat} Tags* and posting your version.
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Does this mean you are using 8i? Then scalar sub queries - selects within the select list, are not supported, along with CASE in PL/SQL.
    Select DECODE(1,
    * (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY')))*,
    'Y',
    'N') PAR_FLAG,
    >
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Decode Statement Inside the Case statement

    Can we use Decode Statement inside a CASE Statement as show below --
    It is giving an error -- Is the a better way to write with out any error
    create or replace
    function test (a varchar2) RETURN VARCHAR2
    is
    m varchar2(20);
    begin
    m :=
    CASE
    WHEN a IN (
    '1009' -- (soon obsolete)
    ,'1010'
    ,'1019'
    ,'1051'
    ,'XGP'
    ,'XSC')
    THEN (SELECT DECODE(v_lef_cd,'NAM','71','GLB','99','01') into m FROM DUAL)
    -- ) THEN '01' -- UNITED STATES OF AMERICA
    WHEN a IN (
    '1069' -- South Africa
    ,'SAO' -- South Africa
    ,'SA' -- South Africa
    ) THEN '26' -- South Africa
    ELSE NULL
    END;
    return m;
    end;

    Hi,
    You can only use DECODE in SQL statements.
    Your SELECT DECODE (...) INTO statement would work anywhere a PL/SQL statement is allowed; but PL/SQL statements are not allowed within CASE expressions.
    Remember, the expression that comes after THEN in a CASE expression must be a single value.
    I would write a function like this using IF ... ELSIF statements. It's a little more typing than CASE, but a lot easier to code, test and maintain.
    If you want to use CASE, here's one way:
    ...     m := CASE
              WHEN  a  IN ('1069', 'SAO', 'SA')
                   THEN  '26'     -- South Africa
              WHEN  a  NOT IN ('1009', '1019', '1051', 'XGP', 'XSC')
              OR    a  IS NULL
                   THEN  NULL
              WHEN  v_lef_cd = 'NAM'
                   THEN  '71'
              WHEN  v_lef_cd = 'GLB'
                   THEN  '99'
                   ELSE  '01'     -- USA
              END;This assumes that you have a variable v_lef_cd defined.
    If you want, you can nest CASE expressions, like this:
    ...     m := CASE
              WHEN  a  IN ('1069', 'SAO', 'SA')
                   THEN  '26'     -- South Africa
              WHEN  a  IN ('1009', '1019', '1051', 'XGP', 'XSC')
                   THEN  CASE  v_lef_cd
                          WHEN  'NAM'
                             THEN  '71'
                          WHEN  'GLB'
                             THEN  '99'
                             ELSE  '01'     -- USA
                         END
              END;Always format your code, so you can see where the CASE expressions and each of the WHEN clauses begin and end.
    When posting formatted text on this site, type these 6 characters:
    (all small letters, inside curly brackets) before and after sections of formatted text, to preserve spacing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Flash player will not work on my computer, would love advice

    I have windows vista.  When I visit a web page that requires flash, it instructs me to download it (even though I'm sure I have it ialready...).  I do so, it says it has downloaded successfully but I still cannot view the website.  I have uninstalled my current version of flash and reinstalled the latest version numerous times.  It even shows up in my list of programs.  But each time I visit a site that uses it, it tells me I need flash to view it.  Very frustrating.  And suggestions would be appreciated.  Thanks!

    This was very helpful - thank you.  I unchecked "active x filtering" and it seems to be working, under tools in IE.  a simple solution, that may have taken me days to figure out myself!  Hopefully it continues to work from thiis point forward.  Thanks!
    Date: Tue, 16 Apr 2013 12:42:26 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash player will not work on my computer, would love advice
        Re: Flash player will not work on my computer, would love advice
        created by Chris Campbell in Installing Flash Player - View the full discussion
    Do you see an animation and version number when you visit the Flash Player Version page? If you are using Internet Explorer, please verify that the following two FAQs check out. Enabling Flash Player in Internet Explorer ActiveX Filtering in Internet Explorer
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5240948#5240948
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5240948#5240948
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5240948#5240948. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • What is the wriong with this statement as some times it is not working

    Hi
    Please fnd below code
    UPDATE napp_ngs3pr_onhand_stg nn3o1
    SET nn3o1.status = 'ERROR'
    ,nn3o1.error_message = 'Duplicate Record'
    ,nn3o1.last_updated_by = p_user_id
    ,nn3o1.created_by = p_user_id
    ,nn3o1.request_id = p_request_id
    ,nn3o1.file_name = NVL (p_file_name, nn3o1.file_name)
    ,nn3o1.last_update_date = l_sysdate
    WHERE nn3o1.status = 'NEW'
    AND partner_name = p_partner_name
    AND nn3o1.ROWID > any (select nn3o2.ROWID
    FROM napp_ngs3pr_onhand_stg nn3o2
    WHERE 1=1 --status IN ('NEW', 'SUCCESS', 'ERROR')
    AND nn3o1.partner_name = p_partner_name
    AND nn3o1.subinventory = nn3o2.subinventory
    AND TRUNC (nn3o1.onhand_date) = TRUNC (nn3o2.onhand_date)
    AND nn3o1.part_number = nn3o2.part_number
    above query is not working properly some times when two files contains same data and loaded into table and processed one by one in diffrent sessions which are follwed each other.
    If I use dbms_lock.sleep in procedure to invoke the second procedure then above statement working properly.
    Please adivse.
    Thanks
    Raghav

    Hi, Raghav,
    Sorry, I don't know what you need.
    Whenever you have a question, post
    (1) The version of Oracle you're using
    (2) A little sample data *just enough to show what the problem is)
    (3) The results yu want from that sample data
    Your query can be useful, too. Always format code, and post it between {code} tags to preserve the formatting on this site.

  • An update statement followed by a commit does not work

    Hi all,
    When I have these two statements executed together, it does not work.
    update booking set arrival_date = sysdate - 1
    where booking_no = '200500000018';
    commit;
    But when I first execute the first update statement, then comment it out, and then execute the commit statement, it works. Is that a bug or do I do something wrong or is it supposed that way? Oracle 9.2.0.7, Raptor on XP SP2.
    Thanks.
    ben

    Thanks Donal. I tried and it did not work. Maybe I missed something? I used the same script file that works in SQL+. When I did that in Raptor by clicking the exceute script button, I did not see any thing in the script output window. I verified that by selecting * from user_objects (I was trying to create a sproc) and no sproc was created. Then I ran the script in SQL+, and then ran the select * from user_objects again in raptor, I got one row back.
    ben

  • Select end (Shift+End) in Dreamweaver (MAC) not working anymore

    Hi all,
    all of a sudden it seems that my DreamWeaver shortcut Shift+End is not working anymore to select text till the end of the line. Shift+Home is still working. I'm pretty sure I've been using it till the day before yesterday. I noticed the shortcut not working on my macbook yesterday, but since that was a clean install I thought that might have been the issue. But today I noticed the same on my working station which has been installed for a couple of days now.
    Is anyone else facing this problem? I tried re-adding the shortcut, but that doesn't work at all..
    Joshua

    Seemed to have fixed itself.. all of a sudden it is working again..    

  • Automatic Selected Item of List Builder Component Does not work (anymore)

    Hi all,
    Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
    Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
    This are my settings of the list builder component (which was running correctly earlier..):
    -at the general tab I defined a range of labels
    -at the general tab I defined 2 data column insertion series
    -at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
    -all of the data comes from an external xml data source
    You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
    I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
    Greetings Erik-Jan Vriens

    Hi njnits,
    Print view button is a standard component of Xcelsius: look at it in the IDE
    Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
    All visualisations, not only the table,  in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
    The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
    Hopes this info helps....

  • Selection in the Generic Data Source does not work

    Hi gurus,
    I have some problem with the selection in the Generic Data Source.
    I have created a view as a base of a Generic Data Source.
    This view is based on several table; i.e.: VBUK-VBELN (Sales Order number), VBAP-ERDAT (creation date of Sales Order), VBAP-POSNR (Sales order item), VBAK-BSTNK (Customer Purchase order number).
    In the view, some join conditions have been defined: VBUK-VBELN = VBAK-VBELN, VBUK-VBLN = VBAP-VBELN.
    I want to extract the Sales Order number, Sales order item and Customer Purchase order number for the Sales order created on the previous year.
    On the Generic Data Source, I select VBELN (Sales order number) and ERDAT (creation date of sales order) as selection.
    However, when I run the extractor checker (RSA3) on this Generic Data Source, the selection does not work at all, i.e.:
    eventhough I restricted the Sales order number and/or the creation date of sales order, the generic data source ignores the selection criteria and extract ALL data.
    Does anyone ever have similar problem? Did I miss some step in the Generic DAta Source creation? How to fix this problem?
    Thanks a lot in advance.
    Best regards,
    Fen

    Hi Fen,
    Just check what is the output you get for the same selection for the view you created.
    Bye
    Dinesh

  • IPhone 4s: Slide wifi is not selectable. Always gray and wifi does not work!

    i have Slide wifi is not selectable iPhone 4s. Always gray and wifi does not work.
    Help me!

    You most likely have a failure of the WiFi chip.
    Restore the phone as a new device.  If that doesn't solve your problem, you'll have to bring your phone to Apple for replacement.  If you are not within the warranty period, expect to pay $199 for out of warranty replacement.

  • Select st. using AND to find matches not working

    HI,
    Hopefully this one will be easy. I've need to produce the results of a query for customers who are on two plans (product1 & product2). THis should be an easy use of where name like 'product1%' and name like 'products2%'. THis is not working, I've tried it with parenthesis, without and everything I can think of. I know that there are accounts that use both, but this query keeps returning no rows.
    Does anyone have any ideas of how this should work?
    select distinct(a.account_no),
         ani.first_name||' '||last_name,
         abp.name
    from account_nameinfo_t ani,
         account_t a,
         brio_broadcast.accounts_and_products abp
    where UPPER(abp.name) like '%PRODUCTS1%'
    and UPPER(abp.name) like '%PRODUCTS2%'
    and a.poid_id0=ani.obj_id0
    and a.poid_id0=abp.poid_id0;
    also tried -
    select distinct(a.account_no),
         ani.first_name||' '||last_name,
         abp.name
    from account_nameinfo_t ani,
         account_t a,
         brio_broadcast.accounts_and_products abp
    where ((UPPER(abp.name) like '%PRODUCTS1%')
    and (UPPER(abp.name) like '%PRODUCTS2%'))
    and a.poid_id0=ani.obj_id0
    and a.poid_id0=abp.poid_id0;

    Joe,
    I'm not sure what your data model looks like, so you might have to tweak this a little bit.
    It sounds like you're looking for customers that subscribe to two different plans. If different plans appear in different rows of the Brio table of plans, then you have to reference that table twice in your FROM clause with different aliases.
    Something like this, perhaps?SELECT DISTINCT a.account_no
    ,               ani.first_name || ' ' || ani.last_name
    ,               abp1.name
    ,               abp2.name
    FROM account_nameinfo_t                   ani
    ,    account_t                            a
    ,    brio_broadcast.accounts_and_products abp1
    ,    brio_broadcast.accounts_and_products abp2
    WHERE UPPER(abp1.name) LIKE '%PRODUCTS1%'
    AND   UPPER(abp2.name) LIKE '%PRODUCTS2%'
    AND   a.poid_id0 = ani.obj_id0
    AND   a.poid_id0 = abp1.poid_id0
    AND   a.poid_id0 = abp2.poid_id0Try taking it from here.
    Good luck and hope this helps,
    T.

  • Select Statement inside the insert statement

    I need to insert the values into nav_pending by selecting the values from nav table
    when i write this code its giving missing expression error
    Can i know what is the problem??
    can i use select inside insert in oracle????
    INSERT INTO NAV_PENDING (ACCOUNT_NUM,PERIOD_DTE)
    VALUES
    SELECT ACCOUNT_NUM,PERIOD_DTE
    FROM NAV where ACCOUNT_NUM=1;
    Thanks in advance

    Leave the values keyword
    INSERT INTO NAV_PENDING (ACCOUNT_NUM,PERIOD_DTE)
    SELECT ACCOUNT_NUM,PERIOD_DTE
    FROM NAV where ACCOUNT_NUM=1;

  • Select from  Berkeley DB through java code not working

    Hi,
    I have developed an application using Jdeveloper 11g where in the Database Navigator I have created a new connection say Conn1 ,selected Generic Jdbc as the connection type and org.sqlite.Jdbc as the Driver Class.The JDBC URL is for example jdbc:sqlite:C:\Temp\ABC\abc.db .I have created a table say zipcodes. Now,I developed an ADF Fusion Web App in Jdev and selected View Obj in the model part.In the subsequent steps I selected the Berkley DB Connection as Conn1 and thus created the App Module and View Object.I then created a java class in the model part with code as
    package abc;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Properties;
    public class MainClass {
    public static void main(String[] args)
    try {
    String driver = "org.apache.derby.jdbc.EmbeddedDriver";
    Class.forName(driver).newInstance();
    Connection conn = null;
    conn = DriverManager.getConnection("jdbc:derby:C:\Temp\ABC\abc.db");
    Statement s = conn.createStatement();
    ResultSet rs = s.executeQuery("SELECT city, state, zipcode FROM zipcodes");
    while(rs.next()) {
    System.out.println("City : "+ rs.getString(1));
    System.out.println("State : "+ rs.getString(2));
    System.out.println();
    rs.close();
    s.close();
    conn.close();
    } catch(Exception e) {
    System.out.println("Exception: "+ e);
    e.printStackTrace();
    I imported db.jar, dbexample.jar, sqlite.jar ,derby.jar. and in the view part selected a jsf page and drag and dropped an attribute from the view control...Now when I run the application the error is that: Application module not connected to a database...
    What can be the possible problem?????How do I resolve it
    Thank you.

    Hello,
    What is the OS platform and version of Berkeley DB being used?
    abc.db is the Berkeley DB database right?
    Thanks,
    Sandra

  • Closing the Statement returned from ResultSet.getStatement does not work

    With the ORACLE JDBC driver, I have discovered (the hard way) that it is essential to explictly close a Statement object after use. (http://www.orafaq.com/node/758 was useful here).
    Failure to do so leaves the Cursor open and eventually your application will fail with the ORA-01000 Too Many Cursors error.
    That works well if your code still has access to the Statement object which it created when it has finished with the results from executing the Statement.
    But, I've inherited some code where this is not the case. The results in the form of a ResultSet are passed through a few layers before it is eventually processed and can then be closed. The original Statement object is no longer available.
    I thought then that the solution would be use the ResultSet.getStatement method and to close that Statement.
    BUT that doesn't seem to work. The number of cursors continues to go up.
    Any ideas, anyone?
    (I'm using ojdbc6.jar and ORACLE 10g Express.)
    Edited by: Termind on 22-Jul-2010 10:00

    Copied in second message as first gets unreadable...
    eclipse.buildId=I20070625-1500
    java.version=1.5.0_18
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    Command-line arguments:  -os win32 -ws win32 -arch x86 -data D:\Dokumente\Projekte\workspace
    Error
    Tue Sep 29 11:30:49 CEST 2009
    Unhandled event loop exception
    java.lang.NullPointerException
    at org.eclipse.jpt.db.internal.ForeignKey.getReferencedTable(ForeignKey.java:104)
    at org.eclipse.jpt.gen.internal.GenTable.addReferencedTablesTo(GenTable.java:106)
    at org.eclipse.jpt.gen.internal.GenScope.buildReferencedTables(GenScope.java:169)
    at org.eclipse.jpt.gen.internal.GenScope.configureManyToManyRelations(GenScope.java:81)
    at org.eclipse.jpt.gen.internal.GenScope.initialize(GenScope.java:46)
    at org.eclipse.jpt.gen.internal.GenScope.<init>(GenScope.java:33)
    at org.eclipse.jpt.gen.internal.PackageGenerator.<init>(PackageGenerator.java:48)
    at org.eclipse.jpt.gen.internal.PackageGenerator.generateEntities(PackageGenerator.java:38)
    at org.eclipse.jpt.ui.internal.generic.EntitiesGenerator$GenerateEntitiesRunnable.run(EntitiesGenerator.java:129)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1779)

  • Why does "SELECT * FROM [database].[schema].[table]" not work in Azure ?

    Hi all
    In Microsoft Azure I have 2 databases.
    I work since more than 10 years with T-SQL and I always use
    fully qualified object names, means "[database].[schema].[table]".
    When I now make a connection to my database "A" in Azure and
    write a Query against database "B" ("SELECT * FROM [B].[schema].[table]")
    I get an exception. Of course when I connect to database "B" it works
    but again not to database "A". When I use "SELECT * FROM [schema].[table]"
    with the right database connected, it also works in Azure.
    Hope you understand what I mean :-)
    In MS-SQL, this of course works fine.
    Well my question is: What sense does this make ??
    Do I now have to re-write everything just for azure or will this behavior changed sometimes ?
    I know MS-SQL is not the same like Azure-SQL, but hey; does Microsoft think all projects have only one database ?? :-)
    Thanks for any answer
    Frank

    Hi Frank,
    According to your description, you want to retrieval data cross database in SQL Azure, right?
    As June said, Currently cross database joins are not supported in SQL Azure. Also you cannot change database mid query so you cannot, for example, put a USE [MyDB] in your query either. Please refer to the link below to see the details.
    http://www.britishdeveloper.co.uk/2011/11/cross-database-joins-in-sql-azure.html
    If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that they can be, Microsoft might consider to add this feature
    in the following release after official confirmation.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Using ODBC without the 8i or 9i Client

    Connecting Access.mdb on a windows station to Oracle 8i or 9i using ODBC Can an oracle ODBC driver be installed programatically on a station without installing the complete 8i or 9i client? The Microsoft ODBC driver for Oracle produces a message stat

  • Dynamic Text  drive by ASP

    Hi I have figured out how to load dynamic text from an external text file. I need to do the same with an ASP file that pulls its data from a database. How is this done with Flash CS4? I can't find any tutorials anywhere and Adobe's documentation is n

  • ERROR in COST RUN (MSG NO K0 105)

    While running cost run CK11N or CK40N. I am getting Error msg. Group 2950 doest not Exit (K0105). But Cost Element Group 2950 is available. Regards, Velmurugan.S

  • Adding pages to custom templates

    Hi I'm returning to the Mac after many years away and I'm hoping someone can help me. I designed a recipe template in Pages with text boxes formatted the way I want. But I can't seem to add pages to the template or document that keep that specific fo

  • OCIStmtFetch returns error code 1010?

    I am trying to debug some code that doesn't seem to work when trying to read CLOBs from a v9.2 database set up with the AL32UTF8 character set in particular. The OCIStmtFetch() function returns a status value of 1010 which I can't find a definition f