Skip to content

hyuntaepark-gh/AWS-SQL-Database-Analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—„οΈ AWS & SQL Database Engineering Projects

AWS Apache MariaDB SQL Python Pandas ER Modeling 3NF


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.


πŸ“ Project: TradingDB – Relational Database & AWS Application

πŸ” Overview


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.


🧱 System Architecture

System Architecture

Architecture:

  • AWS EC2
  • Apache Web Server (CGI)
  • MariaDB
  • Python backend
  • Pandas Excel export
  • Browser-based SQL interface

πŸ” AWS Deployment

EC2 SSH Login


πŸ“œ Apache Logs

Apache Access Log


🌐 Web SQL Interface

SQL Query Form


πŸ“Š Query Example

Filled Search

Query Result


πŸ“₯ Excel Export Pipeline

Excel Download

Excel Output


🐍 Python Backend

Database Connection

DB Connection

SQL Execution

SQL Fetch

Pandas Export

Pandas Export


πŸ—‚οΈ Relational Model Evidence

Financial Officer Table

Financial Officer

Client Master Table

Client Master

Individual Client (ISA)

Individual Client

Company Client (ISA)

Company Client

Contact Info (1:N)

Contact Info

Contract Master

Contract Table

Contract ↔ Client (M:N via Junction)

Contract Client Mapping


🧠 Database Design Features

  • 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

πŸ› οΈ Technology Stack

  • AWS EC2
  • Apache (CGI)
  • MariaDB
  • SQL (DDL, DML)
  • Python
  • Pandas
  • ER Modeling

🎯 Engineering Value

This project demonstrates:

  • Database schema design
  • Referential modeling
  • Cloud deployment
  • Backend integration
  • Data export automation
  • Production-style architecture thinking

πŸ“‚ Project Structure

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


About

Hands-on SQL projects focused on relational database design, normalization, and business-driven analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors