RetailStoreDB.RetailStoreDB to ShopDB_Temp, and then rename it back to RetailStoreDB.SINGLE_USER mode (to simulate performing maintenance).MULTI_USER mode.Ensure you are executing these against the RetailStoreDB database.
Categories.
CategoryID (Integer, Primary Key)CategoryName (Varchar(50), Cannot be null, must be Unique)Products.
ProductID (Integer, Primary Key)ProductName (Varchar(100), Cannot be null)Price (Decimal, apply a Check constraint so price is > 0)StockQuantity (Integer, apply a Default value of 10)CategoryID (Integer, Foreign Key linking to Categories(CategoryID). Enable ON DELETE CASCADE).Categories table:
Products table. (Hint: Try omitting the StockQuantity on one of them to test your Default constraint!)Products table to verify your insertions.Price of a specific product using its ProductID.DELETE statement to remove the 'Electronics' category from the Categories table.Products table again. Observe what happened to the electronics products due to the cascading referential integrity.Products table entirely.Categories table.RetailStoreDB database.