- Overview
- Project Structure
- Learning Modules
- Business Scenarios Highlights
- Getting Started
- Example Output
- Future Enhancements
- Contributions
- License
- About
This project is a hands-on Oracle SQL learning portfolio, progressing from fundamentals to professional-level reporting using real-world business scenarios.
It uses Oracle Linux 23 AI Free and Oracle SQL Developer for all examples, with dummy data across departments like HR, Finance, IT, and now Sales.
✅ This repo is designed to showcase my query-building, reporting, and business analysis skills using SQL.
oracle-sql-portfolio/
├── queries/
│ └── real_world/
│ └── business_scenarios.sql # Main SQL scenario bundle
├── docs/
│ └── business_scenarios_summary.md # Detailed learning notes and explanations
├── dummy_data/
│ ├── hr_finance_it_data.sql # Core departments
│ └── sales_data.sql # NEW: Sales department data
├── README.md # You're here!
└── LICENSE
| Module | Title | Description |
|---|---|---|
| 01 | SQL Foundation | SELECT, WHERE, ORDER BY, basic filtering and expressions |
| 02 | Joins & Set Operations | INNER, LEFT, RIGHT, FULL, UNION, INTERSECT |
| 03 | Aggregation & Grouping | GROUP BY, HAVING, COUNT, SUM, AVG |
| 04 | Subqueries & CTEs | Nested queries, WITH clause, modular SQL |
| 05 | Analytical Functions | RANK, DENSE_RANK, LEAD/LAG, PARTITION BY |
| 06 | HR + Finance + IT Scenarios | Payroll variance, training impact, budget tracking |
| 07 | Real-World Sales Analytics 💼 | Sales revenue vs budget, commissions, inventory correlation (NEW!) |
| 08 | Dashboard Queries & Reports 📊 | KPI summaries, cross-department reports (Coming Soon) |
Explore realistic use cases powered by SQL:
- Payroll vs Budget Variance
- Inventory Cost Allocation
- Training Completion Rates by Department
- Budget Forecasting
- System Downtime Impact on Payroll
- Training ROI on Compensation
- 💰 Sales Revenue vs Budget Performance
- 💼 Commission Impact on Payroll
- 📦 Sales and Inventory Correlation
📖 Read all scenario summaries and explanations in
docs/business_scenarios_summary.md
🧠 Run the SQL directly from
queries/real_world/business_scenarios.sql
git clone https://github.com/crispusomollo/oracle-sql-portfolio.git
cd oracle-sql-portfolio-
Use Oracle Linux 23 AI Free
-
Install Oracle SQL Developer
-
Create a user/schema for your learning environment
-- Load core data
@dummy_data/hr_finance_it_data.sql
-- Load sales data (NEW)
@dummy_data/sales_data.sqlOpen queries/real_world/business_scenarios.sql in SQL Developer and start executing!
-
Generate ER diagram and include in docs
-
Create demo GIF/video
-
Integrate SQL linting and formatting
Contributions are welcome! Feel free to:
-
Fork this repo and customize for your own learning
-
Submit PRs for additional use cases
-
Open issues with questions or feedback
This project is licensed under the MIT License.
Maintained by Crispus Omollo
Proudly built with real SQL and even realer scenarios.