Small Shop Inventory Tracker
Build a schema for tracking products, suppliers, and stock movements for a small retail shop, then write queries to compute current stock levels and flag items below reorder threshold. Learners practice basic normalization, INSERT/UPDATE patterns, and aggregate SUM queries.
- Estimate
- ~7h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
PostgreSQL · pgAdmin
Project roadmap
- 01
Design the schema
~1.5hCreate products, suppliers, and stock_movements tables tracking incoming and outgoing stock.
- 02
Insert sample data
~1hPopulate products, suppliers, and a history of stock movements.
- 03
Compute current stock levels
~2hWrite a SUM-based query deriving current stock per product from its movement history.
- 04
Flag low-stock items
~1.5hWrite a query listing products below their configured reorder threshold.
- 05
Report supplier order history
~1hWrite a query summarizing quantities supplied by each supplier over time.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack