You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is an Oracle SQL-based inventory management system that keeps track of product stock levels and records daily transactions. It updates the product quantities based on different actions (U, I, D, X) recorded in a transaction table.
π Features
β Manages product inventory using an SQL database
β Automated stock updates through daily transactions
β Handles different actions (U for update, I for increment/decrement, D for delete)
β Automatically logs transaction status in the DAILYRUNshutinghsu table
β Uses PL/SQL to handle stock updates dynamically
π οΈ Database Structure
Tables
1οΈβ£ PRODUCTshutinghsu - Stores product inventory
2οΈβ£ DAILYRUNshutinghsu - Records daily transactions and their statuses
Columns in PRODUCTshutinghsu
Column
Data Type
Description
prod_no
NUMBER(5) PRIMARY KEY
Unique product identifier
qty
NUMBER(10)
Quantity in stock
Columns in DAILYRUNshutinghsu
Column
Data Type
Description
product_no
NUMBER(5)
Product ID
action
CHAR(1)
Action type (U, I, D)
amount
NUMBER(4)
Quantity change amount
whendate
DATE
Transaction date
status
VARCHAR2(50)
Status message
π Actions & Behavior
Action
Description
U (Update)
If the product exists, updates qty to amount; otherwise, inserts a new product.
I (Increment/Decrement)
Increases or decreases the quantity based on amount. If the product doesnβt exist and amount > 0, it is inserted.