Title: Exam 2
Course: COP 2842 Internet Programming

Q: Create a database named FINAL_EXAM that you will then use for all remaining problems.

Q: Create the tables and appropriate constraints based on the following ER diagram. Use appropriate data types. Note that the size column should only accept S, M, or L. In addition the price column should have values greater than zero. All columns in both tables are required.

Q: Insert 3 rows in the Category table. The db is for a small shoe store, so use appropriate data for the description ( “Men”, “Women”, “Children”)

Q: Insert 3 Product records for each category in the product table. Use whatever data you see as appropriate.

Q: Use one statement to increase the price of all products in the Men category by 25%.

Q: Use one statement to delete all products for the Children category.

Q: Create and execute a view named EXAM_VIEW that shows all columns from both tables. Use an inner join.

Q: Remove the tables created in problem#1 from the database.

Q: Remove the EXAM_VIEW object from the database.

Q: Remove the FINAL_EXAM database.