cursor is not fetch next record

Hai All

I created a slider and I have four rows in my table and I need to pick up these four records in the table and insert it into another table

This is my encoding

declare
bar_code varchar2 (25);
date of bar_date;
in_time varchar2 (25);
out_time varchar2 (25);
intr_in varchar2 (25);
intr_out varchar2 (25);
atd_in varchar2 (25);
atd_out varchar2 (25);
Cursor c1 is
Select the barcode, BARDATE, BARTIME
Of temp_attendance
Group of barcodes, bardate, bartime
ORDER BY BAR CODE;
Start
To r1 c1 loop
If r1.bartime between 0630 and 0930 may
- or r1.bartime between 1100 and 1300 r1.bartime between 1615 and 1815 and then
insert into dail_att (barcode, respondent, attend_date) values
(r1.barcode, r1.bartime, r1.bardate);
on the other
Update dail_att set r1.bartime = outtime where barcode = r1.barcode and attend_date = r1.bardate and intimate is null;
end if;
next_record;
end loop;
commit;
exception
while others then
message (SQLERRM);
message (SQLCODE);
end;


Thanks and greetings

Srikkanth.M

simple SQL insert is sufficient if you have no logic of PL inside...

Insert into mytable
(col1,col2)
select cola, colb from mytabl2
where.....

provide the data structure and the appropriate table

Published by: bamba on February 19, 2010 15:51

Tags: Oracle Development

Similar Questions

  • List of values do not fetch all records are read only 25 records of entry

    I have a vo... on which an attribute is to have a list of input values that came from other vo called peoplesearchvo...

    On the user interface, I get only 25 records in the list of input values... I tried several things but still did not work

    in the peoplesearchvo... Tuning part I gave all the rows in batches of 20, according to the needs... Mode... scroll and rangesize = 1

    On the user interface in the section of links to the properties of the iterator, it is rangesize - 25 and updating is the (delay) default mode.

    I did not change when even... I get only these 25 records failed to retrieve all records, even after I scroll down.

    Can you get it someone please let me know about it

    Thank you

    Yes, it is a bug in the ADF (fixed in 11.1.1.7.0).

    If you have oracle support account, see note: 1456824.1

    According to this note, you need to patch 13924897

    Dario

  • my Apple Watch does not record the data of my activity on my iPhone. The application of the activity is implemented on my watch and twinned with phone and not yet to record data.

    my Apple Watch does not record the data of my activity on my iPhone. The application of the activity is implemented on my watch and twinned with phone and not yet to record data.

    HI - try the following steps:

    On your iPhone close application of activity and also, if it runs in the background, the health app (you can close open apps, including the app shows):

    -Double-click the Home button, and then drag upward on each of the app previews to close.

    It can help to restart your iPhone and your watch. Turn on both devices off the power together first, and then restart your iPhone before restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off;

    -To switch on: press and hold the side button until you see the Apple logo.

    If this does not resolve the problem, try next disconnect and rematching of your watch:

    -L'app shows on your iPhone shows backups automatically, including a new when the unpairing via the application.

    -Choose to restore the watch (backup restore) when provided the opportunity during the whole.

    -Most of the data and settings will be restored, with a few exceptions (for example cards Pay Apple, access code).

    - Pairing your Apple Watch and Support Apple - iPhone

    - Set up your Apple Watch - Apple Support

  • Cursor does not when the computer starts.

    On my wife laptop when she started his computer cursor does not at all. How she can use the cursor without using the touchpad (because it doesn't seem to work at all)? So how do this slider to work again?

    Thank you for your help.

    Paul

    Hello

    Try the system restore before you did it again at:

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    Here is the similar procedure under XP, Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    ================================================

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    The here for Toshiba only if other brands may have similar:

    If a Toshiba, they have keys that allow easy adjustment of the TouchPad. See Toshiba support and
    Forums. If the TouchPad has been disabled with map keys must be activated with them.

    Toshiba downloads - access your model.
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp?NAV=download

    Toshiba forums
    http://laptopforums.Toshiba.com/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • The mouse cursor does not appear on the center of the screen to start upward.

    The mouse cursor does not appear on the center of the screen to start upward.  If the mouse moves a mobile cursor appears in the upper left corner of the screen.  Have to keep rebooting until the mouse cursor properly supported.

    The mouse cursor does not appear on the center of the screen to start upward.  If the mouse moves a mobile cursor appears in the upper left corner of the screen.  Have to keep rebooting until the mouse cursor properly supported.

    Suggestions:

    Go to Safe Mode:

    Shut down your computer > turn it back on and immediately and repeatedly tab key F8 until you see a black and white screen. Use the up/down arrow and selectSafe Mode with command prompt.

    1. in safe mode, please do a system restore. Choose the date where you did not have this problem as your restore point.
    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, until the click > next > finish
    To sit and wait. The machine restarts when it's done.

    2. always in safe mode, do a check of the file system. See if file check will check for corrupted files and repair them.

    Start button > Search box type cmd > look up, do a RIGHT click oncmd.exe > click onRun As Administrator > in this window cmd black and white, type at the prompt flashing sfc/scannow > press the ENTER key.
    Note: there is a space between 'sfc' and ' / '.
    To sit and wait. It will take time.
    When finished, exit the cmd window.
    Reboot (restart your computer)

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Need to set the attribute of the current record based on the value of the next record

    With the help of forms 6, I have a form that displays the list of folders. There may be multiple records with the same ID, but with different expiration dates. I need set attributes for hilite only the record with the latest expiration date. The current list points of interest reviews of future expiration dates - but we found that, sometimes, the subscription is renewed before the expiration date has been reached, causing two records with the same ID with expiry dates in the future.

    I can (and do) sort the records by date of expiry and the identification for the record with the latest expiration date is always the last to this ID, so what I want to do is to check the next record to see whether or not it has a different ID. If the current record is the last expiration date, & must be hilited. Because I might want to hilite the current record, I can't simply navigate to another record, according to the description I found, what makes the next_record builtin. Anyone know how I can check for a value in the next record without making the current record?

    Thank you.

    What I would do:

    -Create a DB view based on your table and including the function call DRIVE as a separate column.
    -Base that block you on this point of view
    -If the block is modifiable, set the DML target for the block to your database table.

  • analytical query to select the next record

    Hi all
    I would like to ask the two table below correspond to the output.
    1.dev_wt 2.dev_map 3. output result

    To help more clearance, please see this image link: http://lh6.ggpht.com/_xL6eBqjW6Yo/TEqnSvlF_FI/AAAAAAAAB0U/i2sclnnaj6g/Untitled-3.jpg

    1 dev_wt
    PMS_COMP     PMS_I       PMS_PERF_D   PMS_WT   PMS_CREATION_D
    BBOARD     GICEQGROSS    04/01/2001     30     04/05/2001
    BBOARD     GICST_B       04/01/2001     5      04/05/2001
    BBOARD     SBGS_B        04/01/2001     65     04/05/2001
    
    BBOARD     GICEQGROSS    04/11/2001     30     04/15/2001
    BBOARD     GICST_B       04/11/2001     5      04/15/2001
    BBOARD     SBGS_B        04/11/2001     65     04/15/2001
    2 dev_map
    GS_CODE     GS_I_CODE    GS_I_ID  MD_ID   GS_START_DT    GS_END_DT
    GICEQGROSS   CIWL        304       15     01/04/1998     31/03/2004
    GICEQGROSS   CIWL        304       2     01/04/2004      31/03/9998
    GICST_B      GICST_B     3707      15     01/04/2000     31/12/9998
    SBGS_B       SBGS_B      2231      15     01/04/1992     30/09/2003
    SBGS_B       SBGS_B      564       15     01/10/2003     31/12/9998
    I would like to match PMS_I = GS_CODE to retrieve the GS_I_CODE and analytical assistance

    query to search for the next record.
    Because I need to select record GICEQGROSS PMS_PERF_D date and following
    GICEQGROSS save PMS_PERF_D of dev_wt table and put the result GS_WT_FR and GS_WT_TO output.

    The date is in the format YYYYMMDD
    PMS_WT is divided by 100

    * 3. Output result *.
    GS_I_ID    PMS_COMP     GS_I_CODE     GS_WT_FR     GS_WT_TO     GS_I_CALC
    304       BBOARD        CIWL          20010401     20010410     0.3
    3707      BBOARD        GICST_B       20010401     20010410     0.05
    5209      BBOARD        SBGS_B        20010401     20010410     0.65
    PMS_COMP is of dev_wt table
    GS_I_CODE is dev_map join of tables with dev_wt
    GS_WT_FR is dev_wt GS_START_DT table
    GS_WT_TO's dev_wt record table according GS_START_DT where PMS_I = 'GICEQGROSS. '

    Now my challenge is to select the next record in PMS_PERF_D using the query analysis. Below
    is my query...
    SELECT GS_I_ID, PMS_COMP, GS_I_CODE, GS_WT_FR, GS_WT_TO, GS_I_CALC
    FROM dev_wt (
     SELECT lead(PMS_PERF_D) over(partition by PMS_I order by PMS_PERF_D) as GS_WT_TO        
     FROM dev_wt where PMS_I ='GICEQGROSS')
    left join dev_map on PMS_I = GS_CODE ;
    Thank you

    Edited by: WinZone 24 July 2010 16:46

    Edited by: WinZone 24 July 2010 16:50

    Hello

    This should be good:

    SELECT DISTINCT t2.gs_i_id, pms_comp, t2.gs_i_code,
                    TO_CHAR
                       (MIN (pms_perf_d) OVER (PARTITION BY pms_comp, pms_i),
                        'yyyymmdd'
                       ) gs_wt_fr,
                    TO_CHAR
                       (MAX (pms_perf_d) OVER (PARTITION BY pms_comp, pms_i) - 1,
                        'yyyymmdd'
                       ) gs_wt_to,
                    pms_wt / 100 gs_i_calc
               FROM dev_wt t1, dev_map t2
              WHERE t2.gs_code = t1.pms_i
    

    REM note even as odie: should be "2231" instead...

  • Second update statement is not updated all records

    Hello

    I've written a procedure for updating a table "REFDUMP". The second statement to update the id of the procedure does not update all records. It updates only few records about 3500 off 15967.

    Please can someone help me in this.


    create or replace PROCEDURE refdump1
    AS
    cursor c1 is select r.REF_QUARTER, q.QUARTER, r.reference_date, refdump r.created r, q quarter
    where nvl (r.reference_date, r.created) = q.REFERENCE_DATE;

    cursor c2 is select r.REFnom_QUARTER, q.QUARTER, r.NOMINATION_DATE, refdump r.created r, q quarter
    where nvl (r.nomination_date, r.created) = q.REFERENCE_DATE;

    SLIDER C3 is SELECT * FROM country_region;



    BEGIN
    BEGIN
    I'm looping c1
    UPDATE refdump
    SET ref_quarter = i.quarter
    WHERE (reference_date, CREATED) = nvl nvl (i.reference_date, i.created);
    COMMIT;
    end loop;
    EXCEPTION WHEN others then
    DBMS_OUTPUT. Put_line (' error in the update of the quarter Ref');
    END;

    BEGIN
    I'm looping c2
    UPDATE refdump
    SET refnom_quarter = i.quarter
    WHERE the NVL (nomination_date, CREATED) = NVL (i.nomination_date, i.created);
    COMMIT;
    END LOOP;
    EXCEPTION WHEN others THEN
    DBMS_OUTPUT. Put_line ('error in the update of the quarter of nomination');
    END;

    BEGIN
    UPDATE refdump SET oracle_ovi = 'other '.
    WHERE oracle_ovi is null.
    COMMIT;
    END;

    BEGIN

    I'm looping c3
    UPDATE refdump SET country = i.country_name2, region_cluster = i.region_cluster, region = i.region
    Superior WHERE (countries) in (upper (i.country_name), upper (i.country_name2));
    COMMIT;
    END LOOP;
    END;

    BEGIN
    UPDATE refdump SET country = 'other '.
    WHEN the country is null;
    COMMIT;

    UPDATE refdump SET region_cluster = region, region = substr (region, 1, instr(region,'-') - 2).
    Countries WHERE = "other";
    END;

    END;


    Thank you
    Vikas
  • Conditional Sum and look to the next record

    First of all, here is an example of XML structure
    & lt; game DATA & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 1 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 30 & lt; / FEES & gt;
    & lt; DIVISION & gt; displayed title & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 1 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 20 & lt; / FEES & gt;
    & lt; DIVISION & gt; Displays Title2 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 1 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 40 & lt; / FEES & gt;
    & lt; DIVISION & gt; title displayed 3 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 2 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 30 & lt; / FEES & gt;
    & lt; DIVISION & gt; visible title 5 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 2 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 80 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 6 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 3 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 90 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 7 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 3 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 90 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 8 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; DATASET_ROW & gt;
    & lt; DEPARTMENT & gt; 4 & lt; / DEPARTMENT & gt;
    & lt; FEES & gt; 30 & lt; / FEES & gt;
    & lt; DIVISION & gt; displays title 9 & lt; / DIVISION & gt;
    & lt; / DATASET_ROW & gt;
    & lt; / Group DATA & gt;

    Is it possible to get a sum of a field, grouped by two different fields? Example in my RTF, I have a repeating group based on the DIVISION that inserts section breaks. In the example I posted here what I have in my RTF model is an amount of TAX (guess there are several records for the DIVISION if only 1 is shown here) which appears on each page for the current group. Each DIVISION is printed on its own page. However, at the end of each DEPARTMENT, I also need to print a summary total of the sum of the FEES on all records for this DEPARTMENT on the same page as the last page of the last DIVISION.

    So far, I have so he can make the subtotals for each DEPARTMENT, as they are in my loop. The tricky part, I'm not sure better to go to get and display the total general conditional. My original idea was to use a variable and do it manually in my template, but then I relaized I didn't know how to find out if the next record is the first record in the next Department or not. In this case, I'm hoping to stick in the field of the use of the straight lines of SQL query as my datasource because it's already done. The other option I considered was nested loops and a data model, but then I realized that I wasn't too sure to manually insert section breaks.

    Any thoughts?

    I sent you the model back changed,

    Let me know if that solves the question ;)

  • The mouse cursor is not where is the entrance?

    In the text boxes in websites like Codecademy my cursor is not here where I give input keyboard!

    Is this a new issue after upgrading Windows 10?

    40 Firefox, scheduled to be released soon, will contain several fixes compatibility for Windows 10, so I hope it helps if there is no other explanation or fix for Firefox 39.

  • Since the update to vn 7.0, my cursor is not active on the top of the page several lines of a Web page. Microsoft quotes compaibility trouble, help please

    For example, at the top of this page, the cursor is not active during the disconnection, inbox etc on the top line. Even on web pages

    The top of the Firefox window is unresponsive, inadmissible toolbars - see also the problematic extensions

  • Hello friends, I am not able to record the songs in music in ios 9.3, please give me the solution.

    Hello friend

    I'm not able to record the songs in music in IOS 9.3, please give me the solution.

    Click on album artwork, not the name of the song as you used to. the album art will fade to black revealing the old side thing.

  • Want to F9M09UA #ABA: cursor will not appear on the browser

    My cursor will not appear when the browser window. I tried to restart, stop, update and everything I could find on the internet, but nothing has worked.

    Hello @hcl14,

    Thank you for visiting the Forums from the HP Support! The forums are a great place where you can find solutions for your problems, with the help of the community!

    I stumbled upon your post on the issue of cursor and wanted to help!

    How long have you had this problem?  Did you recently install updates?  This will happen in any internet browser, or just a particular browser?  Have you tried to perform a System Restore, to define the notebook to its previous working state?  Forward to your response.

    Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution', this will help others easily find the information they seek.  In addition, by clicking on the Thumbs up below is a great way to say thank you!

    Have a great day!

  • My cursor does not work in Blogger using the Safari browser.

    My cursor does not work in Blogger using the Safari browser. I am able to type, but the cursor seems to disappear when I'm in blogger.  It is difficult to navigate if you do not see where is the curse. I used all the other browsers, and this does not happen with them.  In the Blogger help forum other people experiencing the same thing.  He has been as well as a few weeks and I can not say definitively if it coincides with the updates to the OS. Any help would be appreciated.

    I have the same question too! Is there any ideas on how to solve this problem? So frustrating when you can't even say where you are on the page

  • Cursor will not correctly display on my H243H monitor

    When I connect my H243H monitor to my laptop (running Windows 7 Edition Home Premium - 64-bit), the cursor will not display on the monitor correctly.  I either get no cursor visible at all or I get a small rectangular grey box.  All solutions?  I went to check the monitor driver, but Acer demonstrated only a 32-bit driver available.  This could be the problem and is it possible around it?  Thanks in advance for your suggestions.

    You have another computer, you can test it? I guess it's a setting on the computer, because the only problem seems to be the cursor. There are some settings that you can change and solutions, you can try the link below.

    http://superuser.com/questions/590569/broken-mouse-cursor-on-main-monitor-Windows-7-64-bit-ATI-Radeo...

Maybe you are looking for

  • T540 part abbreviations (RPF/CS/NFC)

    Hello I'm looking for a room and I noticed these look with one with (w /) or without (w/o), but I have no idea what means each. Can someone help me? I'm trying to get a new trackpad and they told me it comes with the telescope, but I'm not sure what

  • Produce disco UN CD y DVDROM

    MO puedo discos in the section will produce a mi equipo. Dicen qeue falta UN codes. SE lo puse proporcionado ppor Windows MwDia Center y no pasa nada.

  • Broken GANYMEDE on asdm.

    Hi all I'm trying to fix Ganymede + on one of our 5550's asa. Now, Ganymede works via ssh, but not through asdm. However, I can use asdm via the local login. Here are a few configs that seem relevant: Bugsunny # sh run httpEnable http server255.255.2

  • monitor every 15 seconds goes dark, then back to normal. It does not turn off

    My screen every 15 seconds or so darkens and then returns to normal. It isn't turned off, just cycles from normal to dark to normal. Is this a sign that the monitor has failed, or is there a driver or?

  • How to find the ID of the existing contact?

    I need to update an existing contact in Eloqua, but to do that I need to find the ID of the contact.I know how to get the ID of the contact after it is created the first time, but once it is already created how to find the code.How do I do that?Here