Module 8.2
Module 8.2
bfgbdrghrtrgn
This SQL statement:
A. Does an explicit insert
B. Does an implicit insert
new_items
product_id brand description
110 Colgate Dental paste
175 Dew Soda
275 Palmolive Dish detergent
9. Write and execute SQL statements to create the new_items table and populate
it with the data in the table.
10. Write a SQL statement that will update the grocery_items table with the brand
and description from the new_items table when the product ID values match. If they
don’t match, add a new row to the grocery_items table. DO NOT EXECUTE YOUR
STATEMENT YET.
11. How many rows will be updated by the SQL statement in question 10?
12. How many rows will be inserted by the SQL statement in question 10?
13. Which of the following is true about the SQL statement in question 10?
A. new_items is the source table and grocery_items is the target table. B.
grocery_items is the source table and new_items is the target table.
14. Execute the SQL statement you wrote in question 10, and then SELECT all data
from the grocery_items table to verify your answers to questions 11 and 12.
dsfghdftyhgrt5grt