Question: Tasks: Task 1 : Inserting New Products Begin by populating the Products table with new product entries. Write T - SQL statements to insert the
Tasks:
Task : Inserting New Products Begin by populating the "Products" table with new product
entries. Write TSQL statements to insert the following products:
ProductName: "Laptop" Category: "Electronics" StockQuantity:
ProductName: "Running Shoes" Category: "Sportswear" StockQuantity:
ProductName: "Coffee Maker" Category: "Kitchen Appliances" StockQuantity:
ProductName: "Notebook" Category: "Stationery" StockQuantity:
Task : Updating Product Categories Proceed to update the category of the product "Coffee
Maker" to "Appliances."
Task : Adjusting Stock Quantity As part of inventory management, adjust the stock quantity
of the product "Running Shoes" by reducing it to
Task : Creating a Low Stock Alert View To facilitate inventory monitoring, create a TSQL
view named "LowStockAlert" that displays products with a stock quantity less than This view
should show the ProductName, Category, and StockQuantity.
Task : Deleting Products Implement a process to remove products from the inventory. Write T
SQL statements to delete the product with the ProductName "Notebook."
Task : Restocking Products Simulate a restocking scenario by increasing the stock quantity of
the "Laptop" product by units.
Task : Product Count by Category Create a query to retrieve a list of unique product categories
along with the count of products in each category.
Task : Product Restock Recommendation Write a query to identify products that are running
low on stock quantity less than and suggest restocking quantities for each of them.
Task : Category Stock Sum Develop a query to calculate the total stock quantity for each
product category.
Task : Expired Products Handling Suppose you have an "ExpirationDate" column for certain
products. Write a query to identify products that have expired and need to be removed from the
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
