0% found this document useful (0 votes)
2 views3 pages

Copy of Inventory Control Report (1)

The Inventory Control Management System is designed to efficiently manage inventory records including stock transactions, suppliers, and product details using MySQL and SQL. It features a database structure with tables for products, suppliers, stock-in, and stock-out, along with SQL queries for data manipulation and reporting. The system aims to prevent stock shortages and overstocking by maintaining accurate and up-to-date inventory records.

Uploaded by

Aarthy C
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Copy of Inventory Control Report (1)

The Inventory Control Management System is designed to efficiently manage inventory records including stock transactions, suppliers, and product details using MySQL and SQL. It features a database structure with tables for products, suppliers, stock-in, and stock-out, along with SQL queries for data manipulation and reporting. The system aims to prevent stock shortages and overstocking by maintaining accurate and up-to-date inventory records.

Uploaded by

Aarthy C
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Mini Project Report

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.

Software & Technologies Used:


 Database: MySQL
 Interface Tool (optional): MySQL Workbench / Command Line
 Language: 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

SQL Queries and Output:


1. Create Tables
CREATE TABLE products (
product_id INT PRIMARY KEY,
product_name VARCHAR(100),
category VARCHAR(50),
unit_price DECIMAL(10, 2),
stock_quantity INT
);
CREATE TABLE suppliers (
supplier_id INT PRIMARY KEY,
supplier_name VARCHAR(100),
contact_info VARCHAR(100)
);

CREATE TABLE stock_in (


entry_id INT PRIMARY KEY,
product_id INT,
quantity INT,
date_in DATE,
FOREIGN KEY (product_id) REFERENCES products(product_id)
);

CREATE TABLE stock_out (


exit_id INT PRIMARY KEY,
product_id INT,
quantity INT,
date_out DATE,
FOREIGN KEY (product_id) REFERENCES products(product_id)
);

2. Insert Sample Data


INSERT INTO products VALUES
(1, 'Laptop', 'Electronics', 50000.00, 50),
(2, 'Chair', 'Furniture', 1500.00, 100),
(3, 'Pen Drive', 'Accessories', 700.00, 200);

INSERT INTO suppliers VALUES


(1, 'Tech Distributors', 'tech@example.com'),
(2, 'FurniSuppliers', 'furni@example.com');

INSERT INTO stock_in VALUES


(101, 1, 10, '2025-06-01'),
(102, 2, 20, '2025-06-02');

INSERT INTO stock_out VALUES


(201, 1, 5, '2025-06-05'),
(202, 3, 10, '2025-06-06');

3. View All Products


SELECT * FROM products;

Output:

product_id product_name category unit_price stock_quantity


1 Laptop Electronics 50000.00 50
2 Chair Furniture 1500.00 100
product_id product_name category unit_price stock_quantity
3 Pen Drive Accessories 700.00 200
4. Total Stock In per Product
SELECT p.product_name, SUM(s.quantity) AS total_stock_in
FROM stock_in s
JOIN products p ON s.product_id = p.product_id
GROUP BY p.product_name;

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;

7. Low Stock Alert (Threshold < 20)


SELECT product_name, stock_quantity
FROM products
WHERE stock_quantity < 20;

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy