This project demonstrates practical SQL database design and deployment of a database-driven web application on AWS EC2.
This repository demonstrates both:
- π Relational database design (3NF, PK/FK, ISA, M:N)
- βοΈ Cloud-based database application engineering (AWS EC2 + Apache + Python)
It bridges database theory and production-style deployment.
A simulated financial trading database managing:
- Clients
- Financial Officers
- Contracts
- Contact Information
- Company / Individual Client Types
Deployed as a live web-based SQL application on AWS EC2.
Architecture:
- AWS EC2
- Apache Web Server (CGI)
- MariaDB
- Python backend
- Pandas Excel export
- Browser-based SQL interface
- 3rd Normal Form (3NF)
- Primary / Foreign Keys
- ISA Specialization (Individual vs Company)
- One-to-Many Relationships
- Many-to-Many Relationships via Junction Tables
- Referential Integrity Enforcement
- AWS EC2
- Apache (CGI)
- MariaDB
- SQL (DDL, DML)
- Python
- Pandas
- ER Modeling
This project demonstrates:
- Database schema design
- Referential modeling
- Cloud deployment
- Backend integration
- Data export automation
- Production-style architecture thinking
stock-trading-database/ ββ README.md ββ ERD/ β ββ ER_Diagram.pdf ββ schema/ β ββ create_tables.sql ββ queries/ β ββ basic_queries.sql β ββ joins.sql β ββ advanced_queries.sql ββ backend/ β ββ db_connection.py β ββ query_handler.py β ββ export_excel.py ββ docs/ ββ database_overview.md

















