Chapter 4 Test Your Thinking
In the chapter discussion, you learned how to use numerous SQL techniques in a PL/SQL block. First, you learned how to use SELECT INTO to generate values for a variable. Then you learned the various DML methods, including the use of a sequence. Finally, you learned how to manage transactions by using savepoints. Complete the following projects by writing the code for each step and running it and then going on to the next step.
|1)||Create a table called CHAP4 with two columns; one is ID (a number) and the second is NAME, which is a varchar2(20).|
|2)||Create a sequence called CHAP4_SEQ that increments by units of 5.|
Write a PL/SQL block that performs the following in this order: