A comprehensive Inventory Management System implemented using SQL and PLSQL. It includes structured scripts for creating and managing tables, inserting sample data, and executing business logic via procedures, cursors, and triggers.
- Product, Brand, Store & Category Management
- Customer Cart & Transactions
- Restocking Procedure
- Low Stock View
- Trigger for login audit
- Real-world sample data
| File Name | Description |
|---|---|
| 1_create_tables.sql | DDL statements for all tables |
| 2_insert_data.sql | Sample data for tables |
| 3_procedures.sql | Procedures like restock handling |
| 4_cursors.sql | Cursor to iterate products |
| 5_functions.sql | User-defined function example |
| 6_triggers.sql | Trigger for login logging |
| 7_views.sql | View for low stock products |
| 8_test_cases.sql | Example PLSQL blocks & validations |
- SQL Client (SQL Developer, DBeaver, etc.)
- Oracle Database (any version with PLSQL support)
git clone https://github.com/your-username/inventory-management-system-sql.gitRun the scripts in order using your SQL client:
1_create_tables.sql2_insert_data.sql3_procedures.sql4_cursors.sql5_functions.sql6_triggers.sql7_views.sql8_test_cases.sql
💡 Tip: Use the following command before running test scripts to enable output:
SET SERVEROUTPUT ON;