Overview
In this chapter, students learn how to create a new table from an existing table and how to
make changes to the data in a table. Students use the UPDATE command to change data in
one or more rows in a table and use the INSERT command to add new rows. They use the
DELETE command to delete rows. Students also use nulls in update operations. They learn
how to change the structure of a table in a variety of ways and how to drop existing tables.
Students learn how to use the COMMIT and ROLLBACK commands to make changes
permanent and to return changes to their original state. Finally, they learn how to drop a
table.
Chapter Objectives
In this chapter, students learn about:
• Creating a new table from an existing table
• Changing data using the UPDATE command
• Adding new data using the INSERT command
• Deleting data using the DELETE command
• Using nulls in an UPDATE command
• Changing the structure of an existing table
• Using the COMMIT and ROLLBACK commands to make permanent data updates or to
reverse updates
• Understanding transaction and the role of COMMIT and ROLLBACK in supporting
transactions
• Dropping a table
Teaching Tips
Creating a New Table from an Existing Table
1. Use Example 1 and Figure 6-1 to illustrate creating a new table called
LEVEL1_CUSTOMER using the CREATE TABLE command.
3. Use Example 2 and Figures 6-2 and 6-3 to illustrate using the INSERT INTO and SELECT
commands to place data from the CUSTOMER table into the LEVEL1_CUSTOMER table.