loop slider

Hi all

Nice day

I am very thank you for helping me for all

I write code for re filling some data for student to new sit_number

I write this code but get the first record only

and I need to repeat the process until all the data retrieved

declare

v_NUMBERS_SIT_ID_DET number (10);

v_USER_NUMBERS_SIT_ID_DET number (10);

v_STUD_ID number (10);

v_USER_STUD_ID number (10);

v_SCHOOL_YEAR_ID number (10);

v_SCHOOL_ACT_YEAR_ID number (10);

v_SCHOOL_ACT_YEAR_DEPTID number (10);

cursor c_sn_seq is

Select NVL (max (NUMBERS_SIT_ID_DET), 0) + 1, NVL (max (USER_NUMBERS_SIT_ID_DET), 0) + 1

of STD_NUMBERS_SIT_DETIAL;

cursor c_data is

SELECT stud_id, a.user_stud_id, a.school_year_id, a.school_act_year_id, a.school_act_year_deptid.

OF std_study_level_students one

where

user_stud_id not in (select user_stud_id from std_outgoing)

and SCHOOL_YEAR_ID = (select max (SCHOOL_YEAR_ID) of std_study_level_students)

ORDER BY a.school_act_year_id, a.school_act_year_deptid desc, to_number (user_stud_id);

Start

Open c_sn_seq;

extract the c_sn_seq in v_NUMBERS_SIT_ID_DET v_USER_NUMBERS_SIT_ID_DET;

close c_sn_seq;

Open c_data;

extract the c_data into v_STUD_ID, v_USER_STUD_ID, v_SCHOOL_YEAR_ID, v_SCHOOL_ACT_YEAR_ID, v_SCHOOL_ACT_YEAR_DEPTID;

close c_data;

I'm looping c_data

insert into STD_NUMBERS_SIT_DETIAL (NUMBERS_SIT_ID_DET,

USER_NUMBERS_SIT_ID_DET,

NUMBERS_SIT_ID,

USER_STUD_ID,

STUD_ID,

NUMBER_SIT,

SCHOOL_YEAR_ID,

UNVERSITY_YEAR,

SCHOOL_ACT_YEAR_ID,

USER_SCHOOL_ACT_YEAR_DEPTID,

SEMESTER_ID)

values

(v_NUMBERS_SIT_ID_DET,

v_USER_NUMBERS_SIT_ID_DET,

: STD_NUMBERS_SIT. NUMBERS_SIT_ID,

v_USER_STUD_ID,

v_STUD_ID,

std_sit_numbers (v_SCHOOL_ACT_YEAR_ID, v_SCHOOL_ACT_YEAR_DEPTID,: STD_NUMBERS_SIT.) NUMBERS_SIT_ID),

v_SCHOOL_YEAR_ID,

: STD_NUMBERS_SIT. UNVERSITY_YEAR,

v_SCHOOL_ACT_YEAR_ID,

v_SCHOOL_ACT_YEAR_DEPTID,

: STD_NUMBERS_SIT. SEMESTER_ID);

next_record;

-close c_sn_seq;

-close c_data;

end loop;

commit;

execute_query;

end;

Thank you for all

concerning

Ibrahim

Hello

Try this.

BEGIN

INSERT INTO std_numbers_sit_detial

(numbers_sit_id_det,

user_numbers_sit_id_det,

numbers_sit_id,

user_stud_id,

stud_id,

number_sit,

school_year_id,

unversity_year,

school_act_year_id,

user_school_act_year_deptid,

semester_id)

(SELECT std_numbers_sit_detial_sq_1.NEXTVAL,

std_numbers_sit_detial_sq_2.nextval,

: STD_NUMBERS_SIT.numbers_sit_id,.

a.user_stud_id,

a.stud_id,

Std_sit_numbers (a.school_act_year_id,

a.school_act_year_deptid,

(: STD_NUMBERS_SIT.numbers_sit_id).

a.school_year_id,

: STD_NUMBERS_SIT.unversity_year,.

a.school_act_year_id,

a.school_act_year_deptid,

: STD_NUMBERS_SIT.semester_id

OF std_study_level_students one

WHERE user_stud_id NOT IN (SELECT user_stud_id

OF std_outgoing)

AND school_year_id = (SELECT Max (school_year_id)

OF std_study_level_students));

END;

Tags: Oracle Development

Similar Questions

  • Loop slider does not appear when you move to the right of the loop; may not extend the duration of the loop; aaarrrgh.

    Have checked tutorials and help , but doesn't understand why hovering over the right angle, at the top of the track loop not give me the slider that allows me to draw on the track and extend the playback loop.

    Long kickflip is the one that gives me a problem right now, but Latin Bembe Cowbell does not work for me either!

    It is my first try at GarageBand, and maybe my last very soon.  Thanks for easy to understand help you send.

    The two loops work very well for me in GarageBand 10.1.1. Skip on the upper right corner of the audio region to display the cursor of the loop, if it is not, save your project and the test in a different project.   Restart your Mac, if you don't have already done.

  • Custom show incorporating the loop slides and not forming a loop

    I created a PowerPoint file that I want to show that two segments: one for play on a loop as long as the participants in the meeting and the other to show than the official presentation. Normally, I'd create just two files for these different purposes, but the presenter wants to simply click on a button to move the sliding loop to begin his presentation. I'm not very familiar with the custom show feature, but I tried different ideas today and none of them worked so far. TIA!

    Is not a feature of this program, so you should have to do so manually by adding something on the slide, click on, and each of them to go to the "next slide" or "loop to #1' program."

    As this PowerPoint file, I created a form a little bit and set it to go to the #1 slide again.

  • Apple Watch 42 mm band Milanese Loop slides constantly

    Apple Watch 38 mm Milanese becomes more flexible

    Much like the post above, my group of 42 mm Milanese Loop constantly slips to the point that I regularly have to tighten the band and I often have to enter my access code. I am not prepared to remove the password since I use Apple pay on my watch.

    I went to a local Apple store and advice were to buy another group of Amazon! Incredible. I'm trying a bracelet of black links to Amazon, but it seems not as elegant as the Milanese original Apple band although I never have to worry about enter my password several times a day.

    I bought the watch from Best Buy, so I guess I'll start with them on an exchange of band, but I think that it is a design flaw and I would have preferred they give me the band of my choice.

    Advice for solutions are appreciated.

    Hello

    If you fear that your Milanese loop can have a manufacturing defect, contact Apple support (mail service may be available) or make a Genius Bar reservation to check warranty:

    - https://www.apple.com/support/watch/contact/

    If the band is not defective or you have already had to check, you can consider to return your watch to Best Buy (subject to their return policy) and buy a different combination of watchmaking and the Strip.

    An alternative solution is to buy an additional band for your watch today.

    The design for the Apple slices guide is available here:

    http://www.Apple.com/shop/watch/Sizing-Guide

    Apple strips are available for purchase here:

    http://www.Apple.com/shop/watch/bands

    Apple States that you should use only marked Apple or Apple authorized with your watch band. Proceed otherwise may damage your watch and impact on eligibility for the warranty.

  • looped slider

    Hello everyone.

    Im working on a project that requires that I do:

    Use the sliders to display a report containing the following information. list of each region. List the title of each region, each country in this region.

    There are only 4 regions in the table of areas being: 1. europe, Americas 2, 3 Asia, 4 Middle East and Africa.

    the output should be something like this

    Europe

    Belgium
    Switzerland
    Germany
    Denmark
    France
    Italy
    Netherlands
    United Kingdom

    Americas

    Argentina
    Brazil
    Canada
    Mexico
    U.S.

    Asia

    Australia
    China
    Hong Kong
    India
    Japan
    Singapore

    Middle East and Africa

    Egypt
    Israel
    Kuwait
    Nigeria
    Zambia
    Zimbabwe

    Here is my code:

    SET SERVEROUTPUT ON
    SET VERIFY OFF


    DECLARE

    CURSOR reg_cursor IS
    SELECT region_name
    Regions
    WHERE the regions.region_id < = 4;

    CURSOR country_cursor IS
    SELECT country_name
    COUNTRY
    WHERE region_id = region_id;



    Reg reg_cursor % ROWTYPE;
    count_reg country_cursor % ROWTYPE;


    BEGIN

    OPEN reg_cursor.
    OPEN country_cursor.

    LOOP
    SEEK reg_cursor INTO reg;
    EXIT WHEN reg_cursor % NOTFOUND;

    DBMS_OUTPUT. Put_line (' region: ' | reg.region_name);



    SEEK country_cursor INTO count_reg;
    EXIT WHEN reg_cursor % NOTFOUND;
    DBMS_OUTPUT. Put_line ('Country: ' | count_reg.country_name);


    END LOOP;

    CLOSE Reg_cursor;
    CLOSE Country_cursor;


    END;
    /

    Here are my results:
    Region: Europe
    Country: Argentina
    Region: Americas
    Country: Australia
    Region: Asia
    Country: Belgium
    Region: Middle East and Africa
    Country: Brazil

    Any advice will be greatly appreciated.

    Try this one

    DECLARE
    BEGIN
       FOR i IN (SELECT region_name, region_id
                 FROM regions
                 WHERE regions.region_id <= 4)
       LOOP
          DBMS_OUTPUT.put_line (i.region_name);
    
          FOR j IN (SELECT country_name
                    FROM countries
                    WHERE region_id = i.region_id)
          LOOP
             DBMS_OUTPUT.put_line (j.country_name);
          END LOOP;
       END LOOP;
    END;
    

    Kind regards
    Kaila Mahesh

  • Procedure stuck in the Middle

    Hi all

    I performed my procedure that contains multiple loops, slider, collection and so forth, now its like 5 hours and the process is still ongoing, can anyone suggest me how to debug this kind of mistake, actually I want to know what the code area is a problem. Thanks in advance

    Concerning

    Muzz

    Thanks for the answers, but at the moment I can't apply the logic of debugging my code because my procedure is still running.

    In fact, I want to know what part of my SQL creates problem in my parcel running...

    Have you tried to query V$ SESSION_LONGOPS to see if the statement is listed there?

    https://docs.Oracle.com/CD/B28359_01/server.111/b28320/dynviews_3021.htm

    V$SESSION_LONGOPSDisplays the status of the various operations that run for more than 6 seconds (in absolute time). These operations currently include many backup and recovery, the collection of statistics and execution of queries features, and several operations are added to each version of Oracle.

    To monitor the progress of the execution of query, you must use the cost-based optimizer and you must:

    • Set the TIMED_STATISTICS or SQL_TRACE parameterstrue
    • Collect statistics for your objects with the ANALYZE statement or the DBMS_STATS package

    You can add information to this point of view on long-term application-specific operations using the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure.

    As this quote doc says the time to think about debugging, what a "routine procedure" BEFORE run you it.

    You should instrument the code so that it captures information of interest (for example a tablel newspaper) so that the info can be examined independently by another session.

  • What is the difference between pls_integer index and index of directory for a collection?

    Hi all

    I have a bit of difficulty understanding the difference between pls_integer and directory when you declare a collection...

    Is not so much pls_integer than the supposed to be the same in 10g and 11g?

    My problem is that I've declared a collection in a procedure with directory and by record type, it takes 10 seconds to process. (IE TYPE test_table IS the TABLE OF test % rowtype directory INDEX ;))

    However, the same procedure with the declared collection with index of pls_integer, take only 1 second to process. (IE TYPE test_table IS the TABLE OF test % rowtype INDEX BY PLS_INTEGER ;))

    Any help would be welcome.

    Thank you.

    MichaelR wrote:

    I don't understand when say you not to use DML in a LOOP and use sql only. Can you please give me an example?

    I usually of code like this:

    1. I'm looped slider
    2. Update table_name
    3. the value of col1 = i.rec1
    4. where col2 = i.rec2;
    5. end loop;

    This approach is incorrect.

    All SQL is parsed and executed as SQL cursors. There is no such thing as use SQL or cursor.

    A cursor is a "compiled SQL program. Source SQL that has been analyzed in a cursor executable code. When you retrieve the cursor, you push the button the cursor or program execution. It finds a row and return lines. He's on a break. You get the rows returned, these processes and then click the button run the cursor using fetch. Until the cursor/program finds no additional data (or he faces a snapshot too old for example, where it can not rebuild a coherent reading to find the next set of lines).

    A cursor is and has never been a set of cached data in memory that you are recovering from.

    Take a look at your code. You use a slider/program to retrieve data from the database. For each row in the cursor returned, you call another slider/program and pass this line as input data.

    It's slow. Data line moves a cursor to your PL/SQL code, and then again from your PL/SQL code to another cursor.

    A single slider that makes the reading (the SELECTION cursor) part and the part of writing (the slider to UPDATE), requires no PL/SQL to read and write the parts together.

    How to write this unique SQL cursor? You can use:

    UPDATE (SELECT... Of... JOIN THE... WHERE...) SET...

    You can use the MERGE statement. Or maybe just a statement UPDATE simple vanilla.

    What is the problem of a conceptual, performance and scalability point of view, is the approach that you have indicated above. That approach will ALWAYS be slower than just SQL. This approach cannot scale.

    The mantra of performance for Oracle is simple: Maximise SQL . Minimize the PL/SQL.

    Use the SQL language correctly and properly. Do not what SQL is designed to do, in PL/SQL.

  • iDVD 08 - trying to get a slide show to 'looped '.

    Hi Gang

    I created a slide show in iPhoto 08 and exporting it successfully to iDVD.

    I looked everywhere for an Option "Looping".


    Went to iDVD preferences:

    Advanced settings - film settings - set up show - impossible to find a "loopback Option?

    Can someone please lend a hand with this?

    Thank you

    Mike

    Found the answer:

    After dragging the clip in iDVD

    Hightlight the Clip

    Go to Advanced settings and choose 'Loop'

    Thank you!

  • I work in a sensitive project where I have a specific slide which will not move forward. I created a click box that goes to the next slide, and it remains in the same blade if it is in a loop. Very strange. What might be missing?

    I work in a sensitive project where I have a specific slide which will not move forward. I created a click box that goes to the next slide, and it remains in the same blade if it is in a loop. Very strange. What might be missing?

    You can check the Advanced Interaction Panel? You have a note attached to the interactive objects in the simulation? If so, check the desired option Quiz, more specific preferences.

  • A slide show loop

    I created a slide show in Captivate 8. I would use it at a trade show and have the slide show continuously looped automatically. Is there a way to do this?

    Hi Jay,.

    Maybe you could try option preference that helps you in your project on end loop project.

    You can find it in Edit > Preferences > project: begin and end

    Thank you
    MohanA Das

    Adobe Captivate Engineering Team

  • How can I preload the images in the slide show / and also stop slide show loop

    Hello

    I was wondering if someone can help me...

    I have a slide show that is basically like a updated video player up using the effect of scrolling of the slideshow and a sequence of images in the slide show.

    How would I be able to ensure that all the images in the slide show are preloaded before the opening of the site? I tried a bunch of downloaded widgets, none of them does not seem to work, and when I try to scroll the video he returns constantly with load .gif, would like to know how to preload them?

    Secondly, is it all similarly to stop looping slideshow without putting a lot of the same frames at the end? It's just not an effective way to do it.

    no help to any of these questions would be greatly appreciated!

    With a loop, you can use the function summary for slideshow that would stop the loop of the time value is entered in the field back.

    About forcing the contents of the page to load faster, or before any other content, you need to customize this html page.

    Thank you

    Sanjit

  • Captivate Slide is a loop automatically

    Captivate 8 slides of software simulation automatically rewinds to the previous slide.  How it stop doing that?  It has happened twice in my project.  When I'm on the slide that loop back, rewind on the skin button is highlighted, but I didn't click it.

    You should check Seamless tab option.

  • the slide show loop

    I have a slide show full manual screen works fine, but I want to prevent looping. In slide 1, I want to remove the previous slide button, and on the last slide, I don't want to remove the next slide button. Is this possible?

    Unfortunately, this is not possible.

    You might have the widget set to "Auto Play" and set it to 'Play once'

  • Liquid for loops for Carousel slider

    Problem:

    I would like to create a loop for a gallery that will be produced in a sheath of carousel, but do not understand enough liquid to make it work.

    -Each slide contains a whole number and I want liquid to automatically number each slide

    -There is a blade that is active, how I would get the class active to show only once

    I took action:

    {module_photogallery id = "35883" filter = 'all' collection 'Gallery' =' model = '}

    < ol class = "Carousel-indicators" >

    {% for article on gallery.items-%}

    "< li data-target =" ' #carousel-example-generic ' data-slide-to = "{{0,1,2,3,-illimite}}" class = "active {{I just want it to appear once}}" > < img src = "{{item.link}}" > < /li >

    {% endfor}

    < /ol >

    What should I do to make this for the work of the loop?

    Your current class must be set by the slider, class most if not all will be just run and have two asset classes or what ever they use for it.

    But if you want to manually set the first...

    {% If forloop.first-%} Is that your key your after.

  • slide show loop

    How can I loop my slide show I did in a movie?

    You can not in Premiere Elements.  Use the loop of the DVD player or put your slide show on the timeline several times now...

Maybe you are looking for