https://github.com/tinyhiker/nba_greatest_teams
Ad hoc analysis on NBA data
https://github.com/tinyhiker/nba_greatest_teams
Last synced: 5 months ago
JSON representation
Ad hoc analysis on NBA data
- Host: GitHub
- URL: https://github.com/tinyhiker/nba_greatest_teams
- Owner: tinyHiker
- Created: 2025-05-15T22:01:11.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-15T22:48:44.000Z (about 1 year ago)
- Last Synced: 2025-06-22T22:34:35.025Z (about 1 year ago)
- Size: 967 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NBA Winners and Losers– Oracle SQL Developer Edition
A mini‑project that answers three classic basketball questions using pure SQL and an open Kaggle dataset.
| Question | Answer |
| ------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| 1. Which franchise has won the most games all-time? | Boston Celtics |
| 2. Which franchise had the best single-season record? | The 2015 Golden State Warriors |
| 3. Whihc franchise had the worst single-season record? | The 2011 Charlotte Bobcats |
---
## Dataset
* **Source**: [Kaggle – NBA Database](https://www.kaggle.com/datasets/wyattowalsh/basketball/data)
* **Original form**: \~20 CSV files (games, teams, players, etc.)
* **Table used here**: **`GAME`** – one row per game with results for both teams.
| Column | Example | Notes |
| ---------------- | ------------------ | -------------------- |
| `GAME_DATE` | 1949‑11‑02 | DATE |
| `TEAM_NAME_HOME` | "Detroit Pistons" | |
| `TEAM_NAME_AWAY` | "Boston Celtics" | |
| `WL_HOME` | `"W"` / `"L"` | Result for home team |
| `WL_AWAY` | `"L"` / `"W"` | Result for away team |
| `SEASON_ID` | `"S2019"` | Kaggle’s season code |
| `SEASON_TYPE` | `"Regular Season"` | filters out playoffs |
## Import workflow
1. **Download CSVs** from Kaggle.
2. **Oracle SQL Developer ▶ Tools ▶ Import Data** → target table `GAME`.
3. Repeat for each CSV or use the wizard’s batch mode.
*(On a fresh Oracle 21c XE install the whole import fits comfortably in the default USERS tablespace.)*
## Question 1 Result

## Question 2 Result

## Question 3 Result
