![Page 1: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/1.jpg)
Title: Oct 299:30 AM (1 of 18)
![Page 2: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/2.jpg)
Using the sequence to provide the v_idno.
Title: Oct 299:42 AM (2 of 18)
![Page 3: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/3.jpg)
Using the prompt to take in the information to insert in the table.
Title: Oct 299:44 AM (3 of 18)
![Page 4: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/4.jpg)
Title: Oct 299:45 AM (4 of 18)
![Page 5: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/5.jpg)
Doing a calculation and an update of the specified record.
Title: Oct 299:46 AM (5 of 18)
![Page 6: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/6.jpg)
Title: Oct 299:47 AM (6 of 18)
![Page 7: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/7.jpg)
Title: Oct 299:48 AM (7 of 18)
![Page 8: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/8.jpg)
Please be sure to go over these.
Creating and emptying the table I am goingto use.
Title: Oct 299:51 AM (8 of 18)
![Page 9: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/9.jpg)
Title: Oct 299:56 AM (9 of 18)
![Page 10: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/10.jpg)
Title: Oct 299:58 AM (10 of 18)
![Page 11: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/11.jpg)
Title: Oct 299:59 AM (11 of 18)
![Page 12: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/12.jpg)
Title: Oct 2910:02 AM (12 of 18)
![Page 13: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/13.jpg)
I am only inserting certain records.See how this can be handled differently in the cursor on the next slide.
Title: Oct 2910:04 AM (13 of 18)
![Page 14: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/14.jpg)
Now the cursor will only contain records where yrgoal is greater than 50.
Title: Oct 2910:09 AM (14 of 18)
![Page 15: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/15.jpg)
Title: Oct 2910:19 AM (15 of 18)
![Page 16: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/16.jpg)
Note the different loop and the exit when the cursor is not found.
Title: Oct 2910:32 AM (16 of 18)
![Page 17: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/17.jpg)
Exit the loop based on rowcount and if thereare not enough records to cause this exit, exitwhen the cursor is not found.
Title: Oct 2910:34 AM (17 of 18)
![Page 18: Title: Oct 299:30 AM (1 of 18)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF19/CIS150/... · 2019. 10. 29. · PL/SQL procedure successfully completed. SQL> SELECT FROM IDNO NAME](https://reader033.vdocuments.site/reader033/viewer/2022061002/60b0aa0897d6525da80ae3db/html5/thumbnails/18.jpg)
Title: Oct 2910:49 AM (18 of 18)