Live query results · 30-day window
Inventory Analytics
Every figure on this board is produced by a SQL statement executed against the products and stock_movements tables by the embedded query engine.
Q-01
Low Stock Alert
Rows returned: â
Q-02
Inventory Value
Rows returned: â
Q-03
Stock Movement History â last 30 days
DAILY FLOW · receipts above axis, issues below
CARTON-AT-RISK TREND · retail value of stock on hand, recomputed from the ledger
Rows returned: â
Q-04
Top Selling Products
Rows returned: â
SQL
Query Console
Execution log
Table: products
Product Register
Click any row to inspect its ledger history, velocity and cover.
Table: stock_movements
Movement Ledger
Every entry is written with INSERT INTO stock_movements, then applied to the product row with UPDATE products SET current_stock = â¦.
LOG
Record Movement
HIST
Ledger
Q-01 results enriched with velocity & cover
Low Stock Alerts
Severity, days-of-cover and suggested purchase quantity are computed live from the 30-day out-flow in stock_movements.
CSV exports · UTF-8 · comma delimited
Reporting
Each export re-executes its SQL statement, so files always reflect the live tables.
DDL
Data model & documented queries
Reseeding regenerates 30 days of movement history deterministically.