amount should be increased to each record

guys,

Please help me I need a query for a given output as below.

Table

create the table EMP_SAL

(

ID NUMBER (10),

VARCHAR2 (30) MONTHS,.

AMOUNT NUMBER (10)

)

ACTUALS IN TABLE

101Jan13000
102Feb12000
103March4000
104March14000
105Jan

24000

THE OUTPUT THAT I NEED LIKE THIS:

ID

monthamountamt_incr

101

Jan1300013000
102Feb1200025000
103March400029000
104March1400043000
105Jan2400067000

SELECT id, months, amount, flat above (ORDER BY id) FROM emp_sal

Tags: Database

Similar Questions

  • generation of XML for each record

    I have a table db with a few thousand records in it. I need to generate an xml file for each record so that it can power a search machine.

    Can someone help me with this? I could not get it. Here is the example of table.

    create table test_xml)

    number of U_ID

    title varchar2 (500),

    VARCHAR2 (500) keywords.

    Description varchar2 (500),

    VARCHAR2 (500) of the user.

    e-mail varchar2 (500),

    initiator_function varchar2 (500),

    function_impacted varchar2 (500),

    old_request_num varchar2 (500),

    project_region varchar2 (500)

    );

    insert into test_xml values (1, "Heading1 test", "blah bla1", "test 123 ', 1234567',' [email protected]', 'test init funct', 'funct hit test', '55556677', 'abc' ');

    insert into test_xml values (2, 'Title2 test', 'blah bla2', ' test 1232', 1234522',' [email protected]', 'test init funct2 ',' test power supply impacted2', ' 55556679', 'abcccs' ");

    the end result is an XML for each record in this format.

    <? XML version = "1.0" encoding = "utf-8"? >

    <! DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA RSS / / IN" "" > "".

    < gsafeed >

    < header >

    < datasource > ID 1 < / datasource >

    < feedtype > full < / feedtype >

    < / header >

    <>Group

    " < analysis record immediately = 'true' url = ' http://test.com/SearchResult.php?id=1 "action = 'Add' mimetype =" text/html"lock ="true"> "

    < content > <! [CDATA]

    < html >

    < head >

    Heading1 test < title > < /title >

    < meta name = "Keywords" content = "bla bla1" / >

    < name meta = "description" content = "testing 123" / >

    < name meta = "user" content = "1234567" / >

    " < name meta = 'EMAIL' content = ' [email protected] " />

    < name meta = "Source" content = "1" / >

    < / head >

    < body >

    < p > user: 1234567

    < p > EMAIL: bob . [email protected] 

    < p > INITIATOR_FUNCTION: test init funct

    < p > FUNCTION_IMPACTED: test hit funct

    < p > OLD_REQUEST_NUM: 555566777

    < p > PROJECT_REGION: abc

    < /p > < / body >

    < / html >

    []] > < / content / >

    < / recording >

    < / Group >

    < / gsafeed >

    Thanks for any help.

    I'd use SQL/XML functions, more rapid way to generate XML from relational data data.

    Something like the following should you get.

    It displays a document (such as a CLOB) per line in the base table:

    with html_content as (
      select xmlcdata(
               xmlserialize(document
                 xmlelement("html"
                 , xmlelement("head"
                   , xmlelement("title", t.title)
                   , xmlelement("meta", xmlattributes('Keywords' as "name", t.keywords as "content"))
                   , xmlelement("meta", xmlattributes('description' as "name", t.description as "content"))
                   , xmlelement("meta", xmlattributes('user' as "name", t.user_ as "content"))
                   , xmlelement("meta", xmlattributes('EMAIL' as "name", t.email as "content"))
                   , xmlelement("meta", xmlattributes('Source' as "name", t.u_id as "content")) -- ??
                   )
                 , xmlelement("body"
                   , xmlelement("p", 'EMAIL: '||t.email)
                   , xmlelement("p", 'INITIATOR_FUNCTION: '||t.initiator_function)
                   , xmlelement("p", 'FUNCTION_IMPACTED: '||t.function_impacted)
                   , xmlelement("p", 'OLD_REQUEST_NUM: '||t.old_request_num)
                   , xmlelement("p", 'PROJECT_REGION: '||t.project_region)
                   )
                 )
                 indent
               )
             ) as content
      from test_xml t
    )
    select '' ||
           '' ||
           xmlserialize(document
             xmlelement("gsafeed"
             , xmlelement("header"
               , xmlelement("datasource", 'ID 1')
               , xmlelement("feedtype", 'full')
               )
             , xmlelement("group"
               , xmlelement("record"
                 , xmlattributes(
                     'true' as "crawl-immediately"
                   , 'http://test.com/searchresult.php?ID=1' as "url"
                   , 'add' as "action"
                   , 'text/html' as "mimetype"
                   , 'true' as "lock"
                   )
                 , xmlelement("content", html.content)
                 )
               )
             )
             indent
           )
    from html_content html ;
    

    NB: indent option is to print only, you can remove it if you don't need.

  • [ADF, JDev 12.1.3] How to display multiple records on the same page... not in a table but they appear a form for each record

    Hallo,

    I need to create a page that displays the records of a VO, but I would not use a table.

    Instead, I would like to display a form for each record to be displayed.

    Forms must appear one above the other and each form should have 2 buttons: one to remove the file/form itself and one to add a new file/form.

    When you press the button Add a new empty form should be dynamically added to the page (so that the user can fill) and created related record.

    When REMOVE button is pressed the form (which contains the operated button) should be disappear and the record shuould be deleted.

    Creations and destruction must be applied only if the user clicks a button on CONFIRMATION / COMMIT.

    Maybe this http://digilander.libero.it/flattit82/OTN_FILES/MultiFormPage.png picture can help to understand what I want to do.

    You kindly help me?

    Thank you

    Federico

    Hi Federico

    I was saying that your page layout can be achieved using af: table

    See this image:

    This provision is af:table (I think same as yours), just add a column in the table and put all the fields in this column then correct layout allows to design as a provision on the form or group layouts

    I'm not saying it's the best approach, but you can try this

    Thank you

  • Yahoo mail - the font size increases with each 'Enter' - * solution *.

    I raise this issue because pending a previous thread on this was closed, and I have a solution that works for me.

    The question is in Yahoo mail. When you compose a message in full HTML view, the font size increases with each return (newline or 'Enter').

    (It's always a problem from June 2013 and the current version of Firefox for Mac - version 21.0)

    The solution that works for me is:

    View > Zoom > Zoom text only uncheck

    I found another solution because Ctrl-0 (Reset) has not solved this problem for me, no more than to create an exception for yahoo mail. (I only met the problem on yahoo mail).

    This is what worked for me: under view/Zoom/Zoom settings (No Squint) / Zoom, I had both the value of 120% of full page and text only zoom levels. Reset the text only to 100% solved the problem. (I then increased the parameter full page 125% and the fix still works).

  • Activate auto sequence number for each records

    Hi team,

    I try to create a project in DRM for details. So I need a Unique ID (ID project) to create when I enter each record on the lower level. Basically, I need an Auto activated sequence so that whenever I have create a folder I get an Auto-generated number that I can use as a Unique ID. Please advice on how this can be validated in DRM.

    Thank you

    Roshi

    Please go through the below document as a solution step by step to activate AutoID

    http://blog.checkpointllc.com/Auto-ID-in-DRM-no-problem

    Thank you

    ~ KKT ~.

  • For all the records for each record double, I need to get a single column with null or 0.

    Hi all

    I have a requirement where I need to get all the records, for each record in double, I need to get a single column with null or 0.

    create table a1

    (

    Identification number,

    VARCHAR2 (100), the point

    part varchar2 (100));

    Insert into a1

    values (1, 'ABC', 'A1');

    Insert into a1

    values (2, 'DEF', 'A2');

    TABLE A

    PART ITEM ID

    1 ABC A1

    1 ABC A1

    1 ABC A1

    DEF 2 A2

    DEF 2 A2

    3 DEF A2

    O/P

    PART ITEM ID

    1 ABC A1

    1        ABC             0

    1        ABC             0

    DEF 2 A2

    2       DEF              0

    3       DEF              0

    Thanks in advance.

    Thanks for your help FrankKalush...

    This one will work.

    WITH got_r_num AS

    (

    SELECT NVL (a1.id, a1.id) as id

    NVL (a1.item, a1.item) AS element

    NVL (a1.part, a1.part) IN the framework

    a1.id AS a_id

    ROW_NUMBER () OVER (PARTITION BY a1.id

    ORDER BY NULL

    ) AS r_num

    BY the a1

    )

    SELECT id

    element

    CASE

    WHEN a_id IS NOT NULL

    AND r_num = 1

    THEN part

    ELSE ' 0'

    END in the framework

    OF got_r_num

    ;

  • Should I increase the RAM of 4 GB to 8 GB

    I want to use a Latitude E6510 web conferences.   Should I increase the RAM of 4 GB to 8 GB?  Anyone who has experience of problems to 2 chips of memory of 4 GB installed and working properly?

    KCav

    Hi Dell-HEMA,

    Thanks for the reply.

    Running diagnostic tests on laptop, notebook goes to will as soon as replacement memory 2 GB modules with 2 4 GB.

    Help welcome to start with the Conference.  Uncertain, what tools to use, have experimented with Google + and Skype.

    KCav

  • Create id, id of the update with the date for each record

    Hello

    Please give me brief idea or document for this concept:

    I need to create id, date, update id, updated for each record inserted or updated in the database (multiple tables).

    (1) how the user id can be obtained?
    (2) is it better if I use views instead of tables for this?
    (3) is it possible for each record?

    Please show me the full scenario. a piece of code can also be useful.

    Thanks in advance.

    http://psoug.org/reference/table_trigger.html

    Concerning
    Biju

  • number for each record that is extracted (query)

    Hello
    I want to what a number for each record that is retrieved from the recording which was released by this query

    For example
    For the first line/recored
    Number generated, ksnumber, date
    1, gg111 11/05/05
    2, oo235 06/12/05

    the query returned 2 records 1 and 2 are the number generated by this code.
    In addition if it is built in function, where in the code can I put it?


    < cfquery = name "gelov datasource ="kl90">"
    SELECT
    -------------------------------------------

    Of
    --------------------------------
    WHERE
    -----------------------------------------
    -----------------------------------------------------

    ORDER BY
    < cfswitch expression = "#Form.orderBy #" >
    < cfks value = "KSNUMBER" >
    KS. KS_NBR
    < / cfks >
    < cfks value = "DATECREATED" >
    KS. KREATDAT
    < / cfks >
    < / cfswitch >
    < / cfquery >

    <! - report html - >
    < cfswitch expression = "#Form.outputFormat #" >
    < cfks value = "HTML" >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    Report Kss Ctwye < title > < / title >
    < / head >
    < style type = "text/css" >
    table {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    TD {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    Th {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    H2 {}
    do-family: Arial, Helvetica, without serif.
    do-size: 12px;
    }
    H3 {}
    do-family: Arial, Helvetica, without serif.
    font-size: 13px;
    }
    < / style >

    < body >
    < cfoutput >
    < table border = "0" cellpadding = "3" cellspacing = "0" >
    < b >

    < td align = "center" >
    Kss Ctwye report < h3 > < / h3 > < br > < br > < table >
    < /tr >
    < b >
    < td align = "center" >
    < / h2 > report returned #getCtwyeKss.RecordCount # entries < / h2 > < table >
    < /tr >
    < b >
    < td >
    < table border = "1" cellpadding = "2" cellspacing = "0" >
    < b >

    < td width = "160" > Ks number < table >
    Date of creation of the < td > < table >
    <!-< class = 'dataField' td > address < table >
    < class td 'dataField' = > Type < table >
    < class td 'dataField' = >-> Description < table >
    < /tr >

    < cfloop query = "getCtwyeKss" >


    < tr bgcolor = "< cfif currentrow mod 2 > F8F8FF < cfelse > WHITE < / cfif >" >
    < td > #KS_NBR # < table >
    < td > #dateformat(KREATDAT,"mm/dd/yyyy") # < table >


    < /tr >
    < / cfloop >

    < /table >
    < table >
    < /tr >
    < /table >

    < / BODY >
    < / HTML >
    < / cfoutput >
    < / cfks >

    < cfks value = "CSV" >


    < NAME CFHEADER = "Content-Disposition" VALUE = "attachment; filename = ctwye.csv">
    < cfcontent type = "application/msexcel" > "Ks number", "Date of creation".
    < cfoutput query = "getCtwyeKss" > #ltrim (KS_NBR) #, "#dateformat(KREATDAT,"mm/dd/yyyy")" # "< tr #IIF (getCtwyeKss.CurrentRow MOD 2, OF (»), DE('backgroundColor="##999"')) # >"



    <!-< tr bgcolor = "< cfif currentrow mod 2 > # 808080 < cfelse > ##ffffff < / cfif >" >-->
    < / cfoutput >


    < / cfks >
    < / cfswitch >


    is not a Coldfusion tag. Use instead.

    The following code prints line numbers


    Select ksnumber, date
    from yourTable


    #currentrow #, #ksnumber #, #date #.

  • Cursor does not properly... Gives entry each record last records.

    Hi all.

    a simple for someone, I'm sure...

    I've just added the cursor:

    -- ***************************************************
    -The cursor for Oracle_Loc_Code de SU CHRIS vs ORACLE table locations in a variable...
    -- ***************************************************

    CURSOR csr_ora_loc_code IS
    SELECT sil. ORACLE_LOC_CODE
    OF std, sil SU_IEXP_LOCATIONS SU_TEMPLOYEE_DETAILS
    WHERE STDS. STD_LOCATION_ID = sil. CHRIS_LOC_code;

    .. the script I paste below in order to complete each record with what in LIS. Field ORACLE_LOC_CODE.

    But, although it works fine when you have 1 card to run at, where several records need to be loaded together, the script, well between records in ORACLE thin, fills all records with the same store code - whatevers in the last record (instead of dealing with each of them individually). How can I fix?

    Thanks for looking...

    The code...
    /* Formatted on 2009/04/29 11:52 (Formatter Plus v4.8.7) */
    SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
    SET verify OFF
    SET feedback OFF
    
    DECLARE
    -- *********
    -- Debugging/error handling
    -- *********
    -- *********
    -- Work variables
    -- *********
    
       ora_loc_code number                     := 0;
       p_emp_number                     VARCHAR2 (14);
       v_rec_cnt                        NUMBER                          := 0;
       insert_flag                      VARCHAR2 (8);
       err_num                          NUMBER;
       err_msg                          VARCHAR2 (150);
       err_line                         VARCHAR2 (350);
       err_seq                          NUMBER                          := 0;
       l_validate                       BOOLEAN                     DEFAULT FALSE;
       l_std_business_group_id          NUMBER                          := '0';
       l_default_code_comb_id           NUMBER                        := '217269';
       l_organization_id                NUMBER                          := '0';
       l_set_of_books_id                NUMBER                          := '1';
       l_job_id                         NUMBER                          := '10';
       l_obj                            NUMBER;
       l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
       l_assignment_sequence            NUMBER;
       l_name_combination_warning       BOOLEAN                         := FALSE;
       l_assign_payroll_warning         BOOLEAN                         := FALSE;
       l_org_now_no_manager_warning     BOOLEAN;
       l_other_manager_warning          BOOLEAN;
       l_spp_delete_warning             BOOLEAN;
       l_entries_changed_warning        VARCHAR2 (30);
       l_tax_district_changed_warning   BOOLEAN;
       l_person_id                      NUMBER;
       l_assignment_id                  NUMBER;
       l_special_ceiling_step_id        NUMBER;
       l_per_effective_end_date         DATE:= TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
       l_people_group_id                NUMBER;
       l_group_name                     VARCHAR2 (30);
       l_assignment_number              VARCHAR2 (35);
       l_effective_end_date             DATE := TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
       l_date                           DATE                           := SYSDATE;
       ip_p_address_id                  per_addresses.address_id%TYPE;
       ip_p_object_version_number       NUMBER;
       ip_p_party_id                    per_addresses.party_id%TYPE;
       l_per_object_version_number      NUMBER;
       l_asg_object_version_number      NUMBER;
       l_full_name                      VARCHAR2 (240);
       l_per_comment_id                 NUMBER;
       l_per_effective_start_date       DATE;
       l_concatenated_segments          VARCHAR2 (240);
       l_soft_coding_keyflex_id         NUMBER;
       l_comment_id                     NUMBER;
       l_no_managers_warning            BOOLEAN;
    
    -- ***********************************
    -- Get employee details info from work table
    -- ***********************************
       CURSOR get_employee_details
       IS
          SELECT std_hire_date, std_last_name, std_sex, std_date_of_birth,
                 std_email_address,
                 LPAD (std_employee_number, 8, '0') std_employee_number,
                 std_first_name, std_marital_status, std_middle_names,
                 std_nationality, std_title, std_national_identifier,
                 std_address_line1, std_address_line2, std_address_line3,
                 std_address_line4, std_post_code, std_telephone_1, std_country,
                 std_region, std_location_id, std_organization_id,
                 std_supervisor_id, std_person_id, std_position_id
            FROM SU_TEMPLOYEE_DETAILS;
    
    -- *****************************************
    -- checks employee details info from PER_ALL_PEOPLE_F table
    -- *****************************************
       CURSOR c_check_employee (p_emp_number VARCHAR2)
       IS
          SELECT per.person_id, per.business_group_id, per.last_name,
                 per.start_date, per.date_of_birth, per.email_address,
                 per.employee_number, per.first_name, per.marital_status,
                 per.middle_names, per.nationality, per.national_identifier,
                 per.sex, per.title, padd.address_id, padd.primary_flag,
                 padd.address_line1, padd.address_line2, padd.address_line3,
                 padd.town_or_city, padd.postal_code, padd.telephone_number_1,
                 paas.assignment_number, paas.object_version_number
            --  padd.telephone_number_2, padd.telephone_number_3, paas.job_id, paas.location_id,
            --  paas.organization_id, paas.assignment_type, paas.supervisor_id,
            --  paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id,
          FROM   per_all_people_f per,
                 per_all_assignments_f paas,
                 per_addresses padd
           WHERE per.employee_number = p_emp_number
             AND per.person_id = padd.person_id
             AND paas.person_id(+) = per.person_id;
    
       emp_rec                          c_check_employee%ROWTYPE;
    
    -- ***************************************************
    -- Cursor retrieves latest Object Version Number from per_assignments_f table..
    -- ***************************************************
       CURSOR csr_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
       IS
          SELECT MAX (paas.object_version_number)
            FROM per_assignments_f paas, per_all_people_f per
           WHERE paas.person_id = per.person_id
             AND per.employee_number = paas.assignment_number
             AND per.person_id = cp_person_id;
    
    
    -- ***************************************************
    -- Cursor to get Oracle_Loc_Code from SU CHRIS vs ORACLE Locations Table into a variable..
    -- ***************************************************
    
         CURSOR csr_ora_loc_code IS
          SELECT sil.ORACLE_LOC_CODE
         -- INTO ora_loc_code
         FROM SU_TEMPLOYEE_DETAILS std, SU_IEXP_LOCATIONS sil
         WHERE std.STD_LOCATION_ID = sil.CHRIS_LOC_code;
    
    
    BEGIN
    -- ***********************************
    -- Process each record in the work table
    -- ***********************************
       FOR v_emp IN get_employee_details
       LOOP
    -- ************************************
    -- determine whether customer already exists
    -- ************************************
          OPEN c_check_employee (v_emp.std_employee_number);
    
          FETCH c_check_employee
           INTO emp_rec;
    
          IF c_check_employee%NOTFOUND
          THEN
             insert_flag := 'I';
             DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number);
          ELSE
             DBMS_OUTPUT.PUT (CHR (10));
             insert_flag := 'X';
           RAISE_APPLICATION_ERROR (-20001,  'Employee No: ' || v_emp.std_employee_number  || '  already 
    
    exists - please  UPDATE  manually..'    );
           END IF;
    
          CLOSE c_check_employee;
    
    -- ************************************
    -- Obtain the most recent Object Version Number..
    -- ************************************
          OPEN csr_ovn (v_emp.std_person_id);
    
          FETCH csr_ovn
           INTO l_obj;
    
          -- IF csr_ovn%NOTFOUND     THEN        RAISE NO_DATA_FOUND;   END IF;
          CLOSE csr_ovn;
    
    -- ************************************
    -- Open Oracle Location Code cursor 
    -- ************************************
          OPEN csr_ora_loc_code;   -- (v_emp.std_person_id);
          FETCH csr_ora_loc_code
           INTO ora_loc_code;
          CLOSE csr_ora_loc_code;
    
    
    -- ***********************************
    -- Create new PER_ALL_PEOPLE_F and PER_ADDRESSES record from
    --            info in  table record
    -- ***********************************
          IF insert_flag = 'I'
          THEN
    --         BEGIN                             -- Importing Employee Procedure --
             Hr_Employee_Api.create_gb_employee
                     (p_validate                       => l_validate,
                      p_hire_date                      => v_emp.std_hire_date,
                      p_business_group_id              => l_std_business_group_id,
                      p_date_of_birth                  => v_emp.std_date_of_birth,
                      p_email_address                  => v_emp.std_email_address,
                      p_first_name                     => v_emp.std_first_name,
                      p_middle_names                   => v_emp.std_middle_names,
                      p_last_name                      => v_emp.std_last_name,
                      p_sex                            => v_emp.std_sex,
                      p_ni_number                      => v_emp.std_national_identifier,
                      p_employee_number                => v_emp.std_employee_number,
                      p_person_id                      => l_person_id,
                      p_title                          => v_emp.std_title,
                      p_assignment_id                  => l_assignment_id,
                      p_per_object_version_number      => l_per_object_version_number,
                      p_asg_object_version_number      => l_asg_object_version_number,
                      p_per_effective_start_date       => l_per_effective_start_date,
                      p_per_effective_end_date         => l_per_effective_end_date,
                      p_full_name                      => l_full_name,
                      p_per_comment_id                 => l_per_comment_id,
                      p_assignment_sequence            => l_assignment_sequence,
                      p_assignment_number              => l_assignment_number,
                      p_name_combination_warning       => l_name_combination_warning,
                      p_assign_payroll_warning         => l_assign_payroll_warning
                     );
             Hr_Person_Address_Api.create_person_address
                                      (p_validate                     => l_validate,
                                       p_effective_date               => v_emp.std_hire_date,
                                       p_pradd_ovlapval_override      => NULL,
                                       p_validate_county              => NULL,
                                       p_person_id                    => l_person_id,
                                       p_primary_flag                 => 'Y',
                                       p_style                        => 'GB_GLB',
                                       p_date_from                    => SYSDATE,
                                       p_date_to                      => NULL,
                                       p_address_type                 => NULL,
                                       p_comments                     => NULL,
                                       p_address_line1                => v_emp.std_address_line1,
                                       p_address_line2                => v_emp.std_address_line2,
                                       p_address_line3                => v_emp.std_address_line3,
                                       p_town_or_city                 => v_emp.std_address_line4,
                                       p_region_1                     => NULL,
                                       p_region_2                     => NULL,
                                       p_region_3                     => NULL,
                                       p_postal_code                  => v_emp.std_post_code,
                                       p_country                      => v_emp.std_nationality,
                                       p_telephone_number_1           => NULL,
                                       p_telephone_number_2           => NULL,
                                       p_telephone_number_3           => NULL,
                                       p_party_id                     => ip_p_party_id,
                                       p_address_id                   => ip_p_address_id,
                                       p_object_version_number        => l_obj
                                      );
             Hr_Assignment_Api.update_emp_asg
                            (p_validate                    => l_validate,
                             p_effective_date              => SYSDATE,  -- l_date,
                             p_datetrack_update_mode       => l_datetrack_update_mode,
                             p_assignment_id               => l_assignment_id,
                             p_object_version_number       => l_obj,
                             p_supervisor_id               => v_emp.std_supervisor_id,
                             p_default_code_comb_id        => l_default_code_comb_id,
                             p_set_of_books_id             => l_set_of_books_id,
                             p_concatenated_segments       => l_concatenated_segments,
                             --IN/OUT
                             p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                             --IN/OUT
                             p_comment_id                  => l_comment_id,
                             --IN/OUT
                             p_effective_start_date        => l_date,     --IN/OUT
                             p_effective_end_date          => l_effective_end_date,
                             --IN/OUT
                             p_no_managers_warning         => l_no_managers_warning,
                             --IN/OUT
                             p_other_manager_warning       => l_other_manager_warning
                            --IN/OUT
                            );
             Hr_Assignment_Api.update_emp_asg_criteria
                 (p_validate                          => l_validate,
                  p_effective_date                    => SYSDATE,       -- l_date,
                  p_datetrack_update_mode             => l_datetrack_update_mode,
                  p_assignment_id                     => l_assignment_id,
                  p_object_version_number             => l_obj,
                  p_organization_id                   => l_organization_id,
                  p_location_id                       => ora_loc_code,
                  p_job_id                            => l_job_id,
                  p_position_id                       => v_emp.std_position_id,
                  p_special_ceiling_step_id           => l_special_ceiling_step_id,
                  p_effective_start_date              => l_date,
                  --per_effective_start_date,
                  p_effective_end_date                => l_effective_end_date,
                  --IN/OUT
                  p_people_group_id                   => l_people_group_id,
                  --IN/OUT
                  p_group_name                        => l_group_name,    --IN/OUT
                  p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                  --IN/OUT
                  p_other_manager_warning             => l_other_manager_warning,
                  --IN/OUT
                  p_spp_delete_warning                => l_spp_delete_warning,
                  --IN/OUT
                  p_entries_changed_warning           => l_entries_changed_warning,
                  --IN/OUT
                  p_tax_district_changed_warning      => l_tax_district_changed_warning
                 --IN/OUT
                 );
             v_rec_cnt := v_rec_cnt + 1;
             DBMS_OUTPUT.PUT (CHR (10));
             DBMS_OUTPUT.PUT_LINE (   'There were '
                                   || v_rec_cnt
                                   || '  records read in..'
                                  );
             DBMS_OUTPUT.PUT (CHR (10));
    -- ******************************
    -- End of customer related details
    -- ******************************
          END IF;
       END LOOP;
    
       COMMIT;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          ROLLBACK;
       WHEN OTHERS
       THEN
          ROLLBACK;
          err_num := TO_CHAR (SQLCODE);
          err_msg := SUBSTR (SQLERRM, 1, 150);
          err_line :=   'ORACLE error occurred processing record.. ' ||  err_msg;
          DBMS_OUTPUT.PUT_LINE (err_line);
    
          INSERT INTO SU_SL_ERRORS  VALUES (err_num, err_msg, SYSTIMESTAMP);
    END;
    /
    
    EXIT;

    CURSOR csr_ora_loc_code IS

    SELECT sil. ORACLE_LOC_CODE
    -BY ora_loc_code
    OF std, sil SU_IEXP_LOCATIONS SU_TEMPLOYEE_DETAILS
    WHERE STDS. STD_LOCATION_ID = sil. CHRIS_LOC_code; OPEN csr_ora_loc_code. -(v_emp.std_person_id);
    EXTRACTION csr_ora_loc_code
    IN ora_loc_code;
    CLOSE Csr_ora_loc_code;

    Of course Yes.

    He chooses a sil. ORACLE_LOC_CODE, you are to pick up a. Which may be one of the sil. ORACLE_LOC_CODE, you don't like Oracle to choose an individual.
    If you want to get a few specific sil. ORACLE_LOC_CODE, you need to put a filter on it.

         CURSOR csr_ora_loc_code(p_your_parameter NUMBER) IS -- whatever datatype you wan to pass
          SELECT sil.ORACLE_LOC_CODE
         -- INTO ora_loc_code
         FROM SU_TEMPLOYEE_DETAILS std, SU_IEXP_LOCATIONS sil
         WHERE std.STD_LOCATION_ID = sil.CHRIS_LOC_code
         AND your_column = p_your_parameter;
    
          OPEN csr_ora_loc_code(v_emp.std_person_id);   -- (v_emp.std_person_id); -- I'm not sure why did you comment this out.
          FETCH csr_ora_loc_code
           INTO ora_loc_code;
          CLOSE csr_ora_loc_code;
    

    By
    VAMSi

  • Processing each record in table form

    Hi all

    I have a tabular presentation.
    Which queries several records at a time.
    How to treat each record in a form of Oracle one.
    Similar to a pl/sql cursor.

    Forms 6i, e-Business.

    Thanks for any help,
    Bradley

    Im having problems posting the code here so Ive posted the solution here...

    www.seeristic.com/Forum_Posts/Loop_through_all_records_in_a_block.txt

    Copy the following code loop through all records in a specific block.

    If you need move through all the records of all blocks in the form, let me know and ill show additional code for it.

    Scott

  • Should we increase Session or process

    Hello
    I am using Oracle 10 g release 2 on linux
    There are two parameters of sessions and processes spfile, we wanted to increase to 225 500 sessions, processes were 200. In order to increase the sessions I have change the parameter to 500 but the process parameter value remain same, do I need to change it too much or it will adjust according to the sessions.

    Concerning

    Hello

    Should I increase the size of the pga after an increase in the number of meetings?

    It depends on the high tide of users, not the total authorized connections!

    You want your PGA size to prevent the kinds of disc and allow hash joins.

    I have my notes of sizing PGA here, if you want to know more: http://www.dba-oracle.com/art_dbazine_ram.htm

    Hope that answers your question...

    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: the definitive reference":
    http://www.DBA-Oracle.com/BP/s_oracle_tuning_book.htm

  • Using Lightroom 2015.6 Ram increases as each image is processed which causes slow

    As I proceeded successive images in Lr the amount of ram used increases and Lr starts to slow down. It seems that Lr is keeping images in RAM when I finished change them. It started to happen after the last update. What should I do to stop this?

    I forgot where, but on another forum there is a discussion about this.  He seems to have an impact on some users of Lightroom, but not all.  Some of those with the observed slowdown that reduce to a minimum (without closing) Lightroom for a few seconds would free up RAM and speed returns.

    I'm not having the problem and have not tried to reproduce it.  Maybe it's because I'm a 'light' user who works on several images at once.   It seems that 'heavy' users scroll through a large amount of images, particularly in the develop module, could be those having the slow down.   Say them, as they move through images, the RAM is loading but not release.

  • Query should return the number of records that do not match the values of the DB

    I have the SQL query in the IN clause that I have certain values to verify each year against DB. I need a query that should tell the number 1 for existing records and 0 to not exist records. I get only matched lines from now account. Help is very appreciated.

    sample

    number of values
    SAM 1
    CAT 0
    POOL 1
    JACK 1
    FUN 0


    Concerning
    Prakash.
    with search_for_values as (
    select 'SAM' name from dual
    union all select 'CAT' from dual
    union all select 'HEN' from dual
    union all select 'JACK' from dual
    union all select 'FUN' from dual
    )
    , search_in_tab as (
    select 'SAM' name from dual
    union all select 'HEN' from dual
    union all select 'JACK' from dual
    union all select 'HEN' from dual
    union all select 'JACK' from dual
    union all select 'HEN' from dual
    union all select 'JACK' from dual
    )
    select sfv.name
         , case when exists ( select null from search_in_tab sit where sit.name = sfv.name  ) then 1 else 0 end   cnt
    from search_for_values sfv
    

    Anton

  • Several records displayed on the form to a time-2 lines for each record

    Hello
    I have a Web in which I want to display to 8 records at the time, in the data block, I've specified 8 as value "number of records".
    However, the record includes too many fields to display on 1 vertical line, I wish so to divide the fields into two separate lines, there will always be 8 folders, but each in two lines.
    How do I do that?
    I use form 10g. The block is a block of database using QUERY CLAUSE, and the canvas is stacked.
    Thank you

    Sandy,
    You will need set the 'Distance between Records' property for each item in the block for multiple registration. This will increase the space between the lines, so you can stack them in two rows. Unfortunately, you cannot set this property to the block - so you must set for each display element.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

Maybe you are looking for