Copy of Inventory Control Report (1)
Copy of Inventory Control Report (1)
Title:
Inventory Control Management System
Objective:
To design a database system to manage inventory records such as stock-in,
stock-out, suppliers, and product details efficiently using SQL.
Abstract:
The Inventory Control Management System is a database project designed to
monitor and manage inventory flow in a warehouse or retail environment. It
keeps track of products, their quantities, supplier details, and transactions.
The system helps to prevent stock shortages and overstocking by
maintaining up-to-date records.
Database Design:
Tables:
1. products – Stores product details
2. suppliers – Stores supplier information
3. stock_in – Logs stock added
4. stock_out – Logs stock removed
Output:
Output:
product_name total_stock_in
Laptop 10
Chair 20
5. Total Stock Out per Product
SELECT p.product_name, SUM(s.quantity) AS total_stock_out
FROM stock_out s
JOIN products p ON s.product_id = p.product_id
GROUP BY p.product_name;
Output:
product_name total_stock_out
Laptop 5
Pen Drive 10
6. Update Stock After Transactions
-- Reduce stock after stock_out
UPDATE products
SET stock_quantity = stock_quantity - 5
WHERE product_id = 1;
Conclusion:
The Inventory Control Management system effectively keeps track of all
transactions related to stock. It ensures up-to-date data for decision-making
and avoids manual errors.