Sales Inventory Project Formatted
Sales Inventory Project Formatted
Target Audience
This system is primarily geared towards: - Small and medium businesses (retailers
and wholesalers) - Inventory managers - Sales personnel - Business owners
seeking real-time insights into sales and stock levels
E-R Diagram
The system is composed of several entities and relationships:
erDiagram
CATEGORY {
int CategoryID PK "Primary Key"
string CategoryName
}
PRODUCT {
int ProductID PK "Primary Key"
string ProductName
int CategoryID FK "Foreign Key"
int SupplierID FK "Foreign Key"
decimal Price
}
SUPPLIER {
int SupplierID PK "Primary Key"
string SupplierName
string Contact
}
INVENTORY {
int ProductID PK "Primary Key"
int QuantityInStock
}
CUSTOMER {
int CustomerID PK "Primary Key"
string CustomerName
string Email
}
SALES {
int SaleID PK "Primary Key"
int CustomerID FK "Foreign Key"
date SaleDate
}
SALES_DETAILS {
int SaleDetailID PK "Primary Key"
int SaleID FK "Foreign Key"
int ProductID FK "Foreign Key"
int Quantity
}
Data Insertion
-- View Inventory
SELECT * FROM Inventory;