

Updating a Table › Review
Review
Choose the correct answers for the questions below. More than one answer can apply for each question.
- You use a SELECT statement with INSERT to:
- Copy specific rows from one table to another
- Add a completely new row to a database
- Modify a row in a table
- If you don't have a value for every column you are adding to a table, you can:
- Identify only the columns you are going to insert values into
- Use the keyword NULL for the columns where the value is unknown
- Use two quotes with a space between for the columns where the value is unknown
- You can update all rows in a table by:
- Using a WHERE clause with an *
- Omitting the WHERE clause
- Using an * after the keyword UPDATE
- You can update selected rows in a table by:
- Specifying columns after the keyword UPDATE
- Using a WHERE clause with an *
- Specifying a search condition in a WHERE clause
- You are updating all columns in a table but do not know the specific value to put into one column. You can:
- Use the keyword UNKNOWN for the column where the value is unknown
- Use two quotes with a space between for the column where the value is unknown
- Use the keyword NULL for the column where the value is unknown
- If you do not have a WHERE clause in a DELETE statement:
- All the rows are deleted and the table is deleted as well
- The table is deleted
- All the rows are deleted but the table remains
To check your answers, see Review Answers for Chapter 8.
Copyright © 2014 CA.
All rights reserved.
 
|
|