Need pl/sql stmnts. for this simple logic

Hi,
I need PL/SQL program for this simple logic i am doing mistake somewhere unbale to trace
out ..
select * from GSR03_PO_DTL;
PO_NUM
L53177000 -- > no changes reqd (only one entry with new format)
L00041677 --> to be updated to L41677000(only one entry with OLD format)
L43677000 -- > no change reqd (exists one row with new format and old format like below)
L00043677 -- > to be deleted this is old format (and new format like above already exists)
EX:
L00012345 --- old format
L12345000 --- new format
Hope question is clear. I written the following program.
update is working fine but delete is not working.
Please help.
Thanks in Advance
Devender
declare
Cursor c_test is
(select po_num from GSR03_PO_DTL);
BEGIN
FOR r_test in c_Test
LOOP
dbms_output.put_line (r_test.po_num);
IF ('L'||substr(r_test.po_num,5,5)) = ('L'||substr(r_test.po_num,2,5)) then
     dbms_output.put_line ('delete stmnt');
END IF;     
EXIT WHEN c_test%NOTFOUND;
END LOOP;
FOR r_test in c_Test
LOOP
IF r_test.po_num like 'L000%' then
IF ('L'||substr(r_test.po_num,5,5)) is not NULL then
     update GSR03_PO_DTL set PO_NUM = 'L'||substr(po_num,5,5)||'000'
     where po_num like 'L000%' ;
     dbms_output.put_line ('update stmnt');
END IF;     
END IF;
END LOOP;
END;
*********************

No need for PL/SQL, man.
SQL> SELECT po_no FROM po1
  2  /
PO_NO
L53177000
L00041677
L43677000
L00043677
SQL> UPDATE po1 y
  2  SET    y.po_no = 'L'||substr(y.po_no,5,5)||'000'
  3  WHERE  y.po_no LIKE 'L000%'
  4  AND    NOT EXISTS ( SELECT null FROM po1 x
  5                      WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
  6  /
1 row updated.
SQL> DELETE FROM po1 y
  2  WHERE  y.po_no LIKE 'L000%'
  3  AND    EXISTS ( SELECT null FROM po1 x
  4                  WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
  5  /
1 row deleted.
SQL> SELECT po_no FROM po1
  2  /
PO_NO
L53177000
L41677000
L43677000
SQL> Cheers, APC

Similar Messages

  • Need PL/SQL code for this

    Hi,
    I need a PL/SQL code for this one...
    Let me know if something is not clear...
    1) The table CLOB_CLOBJECT_CDA has the columns described below...
    Explaining only those fields which are important in this context
    -- CDA_STEP_ID : Basically a Sequence
    -- CLOBJECT_SOURCE1_ID : Every id has got a set of records
    -- CLOBJECT_SOURCE2_ID : Every id has got a set of records
    -- LVL : There are total 8 levels..
    This is the main aim :
    1) There are total 16 million rows..(limited to 10 rows here)
    2) We need to go through level by level (LVL column) & insert the intersection records (CLOBJECT_SOURCE1_ID intersect CLOBJECT_SOURCE2_ID)
    into another table...but this is how it goes..
    Level (LVL column) 3's basically have CLOBJECT_SOURCE1_ID as level (LVL column) 2 CDA_STEP_ID's..
    (consider the statement --** where CLOBJECT_SOURCE1_ID = 285 which is same as 1st insert statement step id)..
    The above process goes for next levels until 8..(so have to use loops)
    So for ex :
    We go through the first insert statement and insert the insertion records only when both CLOBJECT_SOURCE1_ID & CLOBJECT_SOURCE2_ID has got records ..
    If we don't find any records for both of them we should skip the corresponding step id when we go to the next levels...
    Let's go through the 1st insert statement...
    -- We have CDA_STEP_ID = 285 & two sources CLOBJECT_SOURCE1_ID as 19 & CLOBJECT_SOURCE2_ID as 74...
    -- We see the table CLOBJECT_COUNTS & check whether we have counts for both 19 & 74 ..(In fact we insert counts into this table only if they have records)
    -- If so, we insert the intersection records into CDA_MRN_RESULTS ( we do have counts for both of them..) with CDA_STEP_ID 285...
    -- Then we insert the step id which is 285 along with the count into CLOBJECT_COUNTS..
    Let's go through another insert statement...
    -- Consider CDA_STEP_ID = 288 which has two sources CLOBJECT_SOURCE1_ID as 19 & CLOBJECT_SOURCE2_ID as 92...
    -- We see the table CLOBJECT_COUNTS & check whether we have counts for both 19 & 92 ..(we have records for 19 but not for 92)
    -- So we should not proceed with this..& also skip all those records (future records with increasing levels..basically level 3's) which have got 288 as CLOBJECT_SOURCE1_ID..
    (As said earlier that the present CDA_STEP_ID will always be CLOBJECT_SOURCE1_ID in the next level)...
    I wrote the following code which is after the statement...
    Let me have the create & insert statements here..
    create table CLOB_CLOBJECT_CDA
        CDA_STEP_ID           NUMBER,
        CDA_ID                NUMBER,
        CDA_SEQ_NUMBER        NUMBER,
        CLOBJECT_SOURCE1_TYPE VARCHAR2(3000),
        CLOBJECT_SOURCE1_ID   NUMBER,
        CLOBJECT_OPERATOR     VARCHAR2(3000),
        CLOBJECT_SOURCE2_TYPE VARCHAR2(3000),
        CLOBJECT_SOURCE2_ID   NUMBER,
        LVL                   NUMBER
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (285, 285, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 74, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (286, 286, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 75, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (287, 287, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 91, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (288, 288, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 92, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4869, 4869, 1, 'CDA_STEP', 285, 'INTERSECT', 'CLOBJECT', 91, 3);  -- **
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4870, 4870, 1, 'CDA_STEP', 285, 'INTERSECT', 'CLOBJECT', 92, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4871, 4871, 1, 'CDA_STEP', 285, 'INTERSECT', 'CLOBJECT', 93, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4880, 4880, 1, 'CDA_STEP', 286, 'INTERSECT', 'CLOBJECT', 91, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4881, 4881, 1, 'CDA_STEP', 286, 'INTERSECT', 'CLOBJECT', 92, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4882, 4882, 1, 'CDA_STEP', 286, 'INTERSECT', 'CLOBJECT', 93, 3);
    create table CDA_MRN_RESULTS
       CDA_STEP_ID      NUMBER,
      MRN              NUMBER,
      INSERT_DATE_TIME DATE
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (19, 1, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (19,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (19,  3, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (74,  1, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (74,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (74,  4, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (75,  1, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (75,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (75,  6, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (91,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (91,  3, to_date('19-10-2011', 'dd-mm-yyyy'));
    create table CLOBJECT_COUNTS
      CDA_STEP_ID    NUMBER,
      CLOBJECT_COUNT NUMBER,
      DATE_TIME      DATE
    Insert into CLOBJECT_COUNTS values (19,3, to_date('19-10-2011', 'dd-mm-yyyy'));
    Insert into CLOBJECT_COUNTS values (74,3, to_date('19-10-2011', 'dd-mm-yyyy'));
    Insert into CLOBJECT_COUNTS values (75,3, to_date('19-10-2011', 'dd-mm-yyyy'));
    Insert into CLOBJECT_COUNTS values (91,2, to_date('19-10-2011', 'dd-mm-yyyy'));The output goes into two tables...
    CDA_MRN_RESULTS : O/p of intersection records between source1 & source2 id
    CLOBJECT_COUNTS : Step id with counts ...(useful for skipping next level step id's if either of source id has "0" counts)
    Any help is appreciated..
    Thanks..

    I tried to code this..but looping takes a lot of time..I want to skip certain rows where source1_step_id & source_2_step_id are not in clobject_counts table as we proceed to the next levels..Not sure how to skip the rows..
    declare
    cursor c1 (p_level varchar2 ) is
      Select * from clob_clobject_cda
        where lvl = p_level    ;
       TYPE V_TT IS TABLE OF C1%ROWTYPE INDEX BY PLS_INTEGER;
        L_TT V_TT;
        v1 number;
        v2 number;
        v_step_id number;
        v_operator varchar2(100) := '';
    begin
    for i in 2..8 loop
      open c1(i);
      LOOP
           FETCH C1 BULK COLLECT INTO L_TT LIMIT 500;
            FOR indx IN 1 .. L_TT.COUNT
             LOOP
               v1 := L_TT(indx).clobject_source1_id;
               v2 := L_TT(indx).clobject_source2_id;
               v_step_id := L_TT(indx).cda_step_id;
               v_operator := L_TT(indx).clobject_operator;
      Execute Immediate ('Insert into cda_mrn_results Select --+ parallel (cm 128)
                                                      distinct ' || v_step_id || ', mrn, trunc(sysdate) dt from cda_mrn_results  cm
                        where cda_step_id = ' || v1 || '
                        and   cda_step_id in (Select cda_step_id from clobject_counts) ' ||
         v_operator ||
                    '  Select --+ parallel (cm 128)
                                                      distinct ' || v_step_id || ', mrn, trunc(sysdate) dt from cda_mrn_results  cm
                        where cda_step_id = ' || v2 || '
                        and   cda_step_id in (Select cda_step_id from clobject_counts)  ' );
    Insert --+ Append
           into clobject_counts Select cda_step_id, count(distinct mrn),
                       insert_date_time dt from cda_mrn_results  where cda_step_id =  v_step_id   group by cda_step_id,insert_date_time;
       COMMIT;                    
             END LOOP;
           EXIT WHEN L_TT.COUNT = 0;
         END LOOP;
      CLOSE C1;
    End Loop;    
    Commit;
    End;

  • Need SQL for this simple logic..

    Hi,
    I have a select statement
    select msi.segment1,micv.CATEGORY_SET_NAME from
    MTL_system_ITEMs msi, MTL_ITEM_CATEGORIES_V micv where msi.INVENTORY_ITEM_ID = micv.INVENTORY_ITEM_ID
    and msi.ORGANIZATION_ID = 853 and msi.ORGANIZATION_ID = micv.ORGANIZATION_ID and
    msi.segment1 = 'C0005'
    which gives me output
    segment1 CATEGORY_SET_NAME
    C0005          Country Of Origin
    C0005          HS COMMODITY
    C0005          Inventory
    C0005          MFG PLANT
    C0005          Order Management Categories
    C0005          Purchasing Categories
    C0005          Sales and Marketing
    I have another select statement
    which gives me output
    segment1 CATEGORY_SET_NAME
    C2601ZE          Inventory
    C2601ZE          Sales and Marketing
    C2601ZE          Purchasing Categories
    C2601ZE          Order Management Categories
    C2601ZE          MFG PLANT
    Where there are 2 rows missing for part C2601ZE from 2nd select
    I want output like below for 2 missed rows which are from 2nd select
    segment1 CATEGORY_SET_NAME
    C2601ZE          Country Of Origin
    C2601ZE          HS COMMODITY
    MINUS is working but its working only for segment1 not for set_name
    Thanks in Advance
    Devender

    select msi.segment1,micv.CATEGORY_SET_NAME
    from MTL_system_ITEMs msi, MTL_ITEM_CATEGORIES_V micv
    where msi.INVENTORY_ITEM_ID = micv.INVENTORY_ITEM_ID
    and msi.ORGANIZATION_ID = 853
    and msi.ORGANIZATION_ID = micv.ORGANIZATION_ID
    and msi.segment1 = 'C2601ZE'
    and micv.CATEGORY_SET_NAME not in (
            select micv.CATEGORY_SET_NAME
            from MTL_system_ITEMs msi, MTL_ITEM_CATEGORIES_V micv
            where msi.INVENTORY_ITEM_ID = micv.INVENTORY_ITEM_ID
            and msi.ORGANIZATION_ID = 853
            and msi.ORGANIZATION_ID = micv.ORGANIZATION_ID
            and msi.segment1 = 'C0005');
    (Not Tested)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Pls i need help for this simple problem. i appreciate if somebody would share thier ideas..

    pls i need help for this simple problem of my palm os zire 72. pls share your ideas with me.... i tried to connect my palm os zire72 in my  desktop computer using my usb cable but i can't see it in my computer.. my palm has no problem and it works well. the only problem is that, my  desktop computer can't find my palm when i tried to connect it using usb cable. is thier any certain driver or installer needed for it so that i can view my files in my palm using the computer. where i can download its driver? is there somebody can help me for this problem? just email me pls at [email protected] i really accept any suggestions for this problem. thanks for your help...

    If you are using Windows Vista go to All Programs/Palm and click on the folder and select Hot Sync Manager and then try to sync with the USB cable. If you are using the Windows XP go to Start/Programs/Palm/Hot Sync Manager and then try to sync. If you don’t have the palm folder at all on your PC you have to install it. Here is the link http://kb.palm.com/wps/portal/kb/common/article/33219_en.html that version 4.2.1 will be working for your device Zire 72.

  • A wallet needs to be configured for this instance of Application Express

    hi
    I m very new to APEX. I could create web service client with wsdl. But when service is on https i get message
    "a wallet needs to be configured for this instance of Application Express".
    I have created wallet using OWM (10.2.0.1.0) at location c:\del_sometime
    Using admin i configured APEX instance settings wallet as
    Wallet Path = file:c:\del_sometime
    And checked in database too
    SQL> ALTER SESSION SET CURRENT_SCHEMA = APEX_030200;
    Session altered.
    SQL> SELECT
    2 APEX_INSTANCE_ADMIN.GET_PARAMETER('WALLET_PATH')
    3 from dual;
    APEX_INSTANCE_ADMIN.GET_PARAMETER('WALLET_PATH')
    file:c:\del_sometime
    Any idea whats wrong? I am following steps from http://download.oracle.com/docs/cd/E14373_01/admin.32/e13371/adm_wrkspc.htm#BABFBJEA

    also whe I try following i keep getting error failure to open file. I am on XP and file is present with proper permissions.
    SQL> SELECT utl_http.request('https://support.oracle.com/',null,'file:c:\del_sometime\') from dual;
    SELECT utl_http.request('https://support.oracle.com/',null,'file:c:\del_sometime\') from dual
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1577
    ORA-28759: failure to open file
    ORA-06512: at line 1

  • APP-ALR-04106: Please correct the user-defined SQL statement for this alert

    Hi All,
    I have created an alert for engineering module in R12. It got tested and was working fine. when the user testing it, while trigger the alert getting the error, "APP-ALR-04106: Please correct the user-defined SQL statement for this alert".
    when verified the alert, it got verified and ran also. It parsed the query successfully and when run it fetched few records.
    Need help in resolving the issue.
    Thanks in advance.
    Regards,
    sri
    Edited by: user10939296 on Jan 18, 2010 1:16 AM

    Hi Sri;
    I have already gone through the Note: 948037.1. But this note is related to 11i. The solution provided in the Note is for 11i.
    I am facing this issue in R12. Is this patch applicable to R12?I belive its not. But u can check Solution part 4 for your instance, at least it can give you idea. The other note in metalink related bug and all for R11 too.
    I belive its better way to rise Sr while waiting other forum user response to that thread
    Regard
    Helios

  • I want sql query for this output

    hi guys
    could u tell how can i write sql query for this out put
    i have one table like this
    ID ACCOUTID TAX
    1 1 A
    2 1 B
    3 2 C
    4 2 D
    5 3 E
    7 NULL F
    8 NULL G
    MY OUT PUT MUST BE LIKE THIS
    ID AID TAX
    2 1 A
    4 2 D
    7 NULL F
    8 NULL G
    HERE IN THIS OUTPUT I SHOULD HAVE
    MAXIMAM ID VALUE FOR A REPEATED AID VALUES
    AND
    THE ROWS AID VALUES IS NULL ALSO MUST PAPULATED IN THE OUTPUT.
    I KNOW ONE SOLUTION LIKE THIS
    SELECT MAX(ID),AID,TAX
    FROM TABLE T
    GROUP BY AID,TAX
    UNION ALL
    SELECT ID, AIC,TAX
    FROM TABLE T
    WHERE AID IS NULL;
    BUT I WANT SAME RESULT WITH OUT USING LOGICAL OPERATORS.
    COULD U PLZ TELL A SOL.

    Will this help:
    SQL> with t as
      2    (
      3      select 1 ID, 1 ACCOUTID, 'A' TAX from dual union all
      4      select 2, 1, 'B' from dual union all
      5      select 3, 2, 'C' from dual union all
      6      select 4, 2, 'D' from dual union all
      7      select 5, 3, 'E' from dual union all
      8      select 7, NULL, 'F' from dual union all
      9      select 8, NULL, 'G' from dual
    10    )
    11  --
    12  select id, ACCOUTID AID, Tax
    13  from
    14  (
    15    select t.*
    16          ,count(1)       over (partition by t.ACCOUTID) cn
    17          ,row_number()   over (partition by t.ACCOUTID order by id desc) rn
    18    from t
    19  )
    20  where cn > 1
    21  and (rn = 1 or ACCOUTID is null)
    22  /
            ID        AID T
             2          1 B
             4          2 D
             8            G
             7            F
    -- If I leave out the OR condition then you'll get this:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2    (
      3      select 1 ID, 1 ACCOUTID, 'A' TAX from dual union all
      4      select 2, 1, 'B' from dual union all
      5      select 3, 2, 'C' from dual union all
      6      select 4, 2, 'D' from dual union all
      7      select 5, 3, 'E' from dual union all
      8      select 7, NULL, 'F' from dual union all
      9      select 8, NULL, 'G' from dual
    10    )
    11  --
    12  select id, ACCOUTID AID, Tax
    13  from
    14  (
    15    select t.*
    16          ,count(1)       over (partition by t.ACCOUTID) cn
    17          ,row_number()   over (partition by t.ACCOUTID order by id desc) rn
    18    from t
    19  )
    20  where cn > 1
    21* and rn = 1
    SQL> /
            ID        AID T
             2          1 B
             4          2 D
             8            G
    --which follows the description you've given, but not the output

  • I have an Intel iMac running OSX 10.6.8. I would like to use Final Cut Pro 10.1. I know I need OSX 10.9 for this. Can I run both 10.6.8 and 10.9 on the iMac ? I do not want to convert completely to 10.9 because of my existing software. Thanks for any help

    I have an Intel iMac running OSX 10.6.8. I would like to use Final Cut Pro 10.1. I know I need OSX 10.9 for this. Can I run both 10.6.8 and 10.9 on the iMac ? I do not want to convert completely to 10.9 because of my existing software. Thanks for any help

    It would depend on how old your IMac is, how mush memory you have, it it can be upgraded by OWC, etc. I have a 2006 Macbook Pro and would NOT put Mavericks on it or espeacially FCP 10.1.1 on it because the most memory it can have is 4 GB. You need at least 8 GB to work with Final Cut Pro 10.1.1. IMHO.
      I would try to find a copy of Final Cut Express perhaps.
      Does this answer your question?

  • HT4972 i am trying to download some apps onto my iphone 3gs and it keeps saying i need to update it for this but ive trying and there is no update option on the phone or through itunes, it keeps saying its up to date, can anyone help please?

    i am trying to download some apps onto my iphone 3gs and it keeps saying i need to update it for this but ive trying and there is no update option on the phone or through itunes, it keeps saying its up to date, can anyone help please?

    Would this matter then? can you not update the 3g to the lastest software?

  • If i were to get this computer would i need a new network for this or what accessories  would i need?

    If i were to get this computer would i need a new network for this or what accessories  would i need?

    If you have WiFI which is not something extremely specific, and I believe it is not - you are fine with network, just go and buy you a computer and enjoy.

  • Need SQL statement for this logic....

    Hi,
    I want a SQL statement for updating the following changed last number .
    Cuurently its:
    SELECT * FROM TEST;
    LAST NUMBER     CHANGED LAST NUMBER
    123518          
    12355265     
    123674659     
    9087648970     
    After updating with the required SQL statement table should look like
    LAST NUMBER     CHANGED LAST NUMBER
    123518          0000123518
    12355265     0012355265
    123674659     0123674659
    9087648970     9087648970
    the last number should be appended with ZEROs and the length of changed last number should be 10 always. Hope its clear.
    Appreciate your help.
    Thanks in advance
    Devender

    select last_number, lpad(to_char(last_number), 10 , '0') FROM test

  • Proxy to JDBC scenario need dynamic sql query for sender .

    Hi Experts,
    I am developing proxy to jdbc scenario. in this i need to pass dynamic sql query  whre we are passing classical method like below.
    while we are passing select stmt in constant and mapped with access field  and key field mapped with key field.
    MY requirement is like instead of passing select stmt in constant where i can generate dynamically and passed in one field and mapped with access field.

    Hi Ravinder,
    A simple UDF or use of graphical mapping functions in most cases should provide you everything you need to construct a dynamic SQL statement for your requirement.
    Regards,
    Ryan Crosby

  • How to create workflow for this simple scienerio

    HI Gurus,
    I have to create a simple workflow. But I have a problem what the object type I have to choose.
    Scenerio of the workflow is ..
    This workflow gets pernr and benefit plan information from portal.
    this workflow is a one step approval mail
       In the workflow three steps are there.
    In the first step i have to derive basic hourly salary of the person by using infotype --- 008 and company code for the pernr from the 0001 and benefit plan he enrolled
    Second step ---
            there are two company codes, I have to use condition step,
    if one company code I have to send to one hr department mail for approval
    and the  other for another hr department step.
    in the workitem i have to pass salary information, pernr information.
    third step, after approval I have to update the respective infotype.
    My question is for the above scenerio, what object type I have to use.
    For the first step is there any method I have to create which calls function module.
    if so for which object type i have to add method.
    third how do I create the workflow container for this.
    I am new to workflow. I know scenerio is simple but I dont know how to do it.
    Please help me friends.
    Ravi

    think you should create your own Business Object or you can refer to Business Object EMPSALPACK.
    Now Company Code should be an Attribute that you should do the Coding For.
    Use this attribute in the Condition Step of Workflow Template.
    Workflow Container will contain the Business Object that you will be creating. The Business object should have Key Field Pernr and may be anything relevant that you will do for Coding. I think you might have to trigger the Event of the Business Object through code.
    Check the Code below.
    <b>Reward Appropriate Point if useful</b>
    INCLUDE <cntn01> .
    DATA:i_emp_details TYPE STANDARD TABLE OF p0001, "Employee Details
    wa_request TYPE p0001, "Workarea for Employee details
    v_country_grp TYPE molga, "Country SubGrouping
    v_object_key TYPE sweinstcou-objkey. "Key for the buisness object ZWOBUSTRIP
    CONSTANTS: c_bo_trip TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
    c_event_trip TYPE swo_event VALUE 'TripCreate',
    c_infy_type_1 TYPE infty VALUE '0001'.
    Event Container declaration
    swc_container i_event_cont.
    swc_create_container i_event_cont.
    Reading the INFO TYPE 0001 to obtain the
    Employee details
    CALL FUNCTION 'HR_READ_INFOTYPE'
    EXPORTING
    pernr = i_emp_number
    infty = c_infy_type_1
    begda = sy-datum
    endda = sy-datum
    TABLES
    infty_tab = i_emp_details
    EXCEPTIONS
    infty_not_found = 1
    OTHERS = 2.
    SY-SUBRC check is not required as the error
    handelling will be done by WorkFlow rule
    resolution.
    CLEAR wa_request.
    READ TABLE i_emp_details INTO wa_request INDEX 1.
    IF sy-subrc = 0.
    Retrieving the Country SubGrouping for the employee
    SELECT SINGLE molga
    FROM t001p
    INTO v_country_grp
    WHERE werks = wa_request-werks
    AND btrtl = wa_request-persk.
    ENDIF.
    Sending the relevant data to event container
    swc_set_element i_event_cont 'EmpId' i_emp_number.
    IF sy-subrc <> 0.
    No Processing needed.
    ENDIF.
    swc_set_element i_event_cont 'PersonnelArea' wa_request-werks.
    IF sy-subrc <> 0.
    No Processing needed.
    ENDIF.
    swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
    IF sy-subrc <> 0.
    No Processing needed.
    ENDIF.
    swc_set_element i_event_cont 'EmpSubGrp' wa_request-persk.
    IF sy-subrc <> 0.
    No Processing needed.
    ENDIF.
    swc_set_element i_event_cont 'EmpTripId' i_emp_trip.
    IF sy-subrc <> 0.
    No Processing needed.
    ENDIF.
    Raising the event to trigger the workflow
    v_object_key = i_emp_number.
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = c_bo_trip
    objkey = v_object_key
    event = c_event_trip
    TABLES
    event_container = i_event_cont
    EXCEPTIONS
    objtype_not_found = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    No Processing needed.
    ENDIF.
    COMMIT WORK.
    ENDFUNCTION.
    Thanks
    Arghadip

  • Need PL/SQL procedure for file transfer local system to server location

    Hi Experts,
    The requirement is one file ex: text file,excel file is there in Local system suppose c:newfolder/test.txt.
    once run the concurrent program for this particular file in the local system should transfer into server location for the mentioned path.
    is it possible to do in PL/SQL or shell script.
    can you please share the code.
    Thanks
    Meher

    Meher Irk wrote:
    The requirement is one file ex: text file,excel file is there in Local system suppose c:newfolder/test.txt.
    once run the concurrent program for this particular file in the local system should transfer into server location for the mentioned path.Why do you want to copy a local file from the local client file system, via the Oracle database server, to a remote directory on the server?
    Why is the Oracle database server to be used? For what purpose?
    There are standard secure methods for a client to copy a file to a server. Such as sftp and scp. No complex Oracle database server layer needed in-between.
    So why do you want to use the Oracle database to act as the copy mechanism for you?
    It will only make sense if the local file is copied into the database (as a LOB or securefile) and managed by the database. I fail to see why Oracle should be acting as the go-between for the client file system copy process to the server file system. This introduces another moving part in the copy process. Adds more security issues. Adds more authentication issues. And what for?

  • Is there a way to create a schema for this simple XML?

    Hi! A simple question. Suppose we have a XML that looks like that (simplified)
    <documents>
      <total>2</total>
      <doc_1>
        <name>My document</name>
        <code>1234</code>
      </doc_1>
      <doc_2>
        <name>Another document</name>
        <code>5678</code>
      </doc_2>
    </documents>In this simple example, if the tag <total> had a numer of three, there would be a <doc_3> tag.
    Is it posible to create a XSD to this XML? And is it posible for JAXB to process that XSD?
    Thank you in advance

    There are some tools around to generate XML Schemas from instance documents, but I don't know if they are too smart. For example, XMLSPY created the following Schema from your sample:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:element name="code">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="1234"/>
                        <xs:enumeration value="5678"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="doc_1">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="name"/>
                        <xs:element ref="code"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="doc_2">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="name"/>
                        <xs:element ref="code"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="documents">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="total"/>
                        <xs:element ref="doc_1"/>
                        <xs:element ref="doc_2"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="name">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:enumeration value="Another document"/>
                        <xs:enumeration value="My document"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="total">
              <xs:simpleType>
                   <xs:restriction base="xs:byte">
                        <xs:enumeration value="2"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
    </xs:schema>XMLSPY has done its best but this Schema could certainly be cleaned up and made more efficient. If your instance documents aren't going to be too complex, it's probably best to have a tool like XMLSPY start you off, then you can go in by hand.
    But, once you have the Schema in hand, you're ready to get started with JAXB.

Maybe you are looking for

  • VerifyError when invoking a webservice in OC4J

    Hi All, I receive the following error when I try to invoke a method in my webservice. It used to work previously but this error happens when I changed the ant script and try to create a new ear file. java.lang.VerifyError: (class: oracle/epcis/servic

  • Windows will not install under Mavericks

    I am trying to install W7, again, under Mavericks and I cannot do so. Every thing seem to be installed but at start, I get a message that "BOOTMGR is missing, press ctl+alt+delete to restart", but the keyboard (wired and working) will not function so

  • Cursor validation error

    Hi All, I faced this error while compilling SQL package under diff schemas: RS_STG_LOAD_ACTV_E_pb.sql is not compiled on bkodv2a(dwsa02). It gets compiled on bkodv2a(dwsa01) Getting the following error 0/0 ORA-00900: invalid SQL statement 0/0 PLS-008

  • ON-DEMAND Process - DB Object

    Hello All, I'm not familiar with the object storage model of APEX objects and was wondering how On-DEMAND processes are stored? Can you access them via sqlplus (toad,pl/sql dev, sql dev)? The reason I ask, is once the app is published, is there a way

  • Sony or Gateway?

    I bought a computer for college and then received another one for a scholarship. Both are pretty similar but I would like to choose the best one to take to school with me. I've compared them on BestBuy but don't really know what everything means. I w