SQLUS Pipeline Accidents Analysis
SQL analysis of a real-world US pipeline accidents dataset — incident frequency, location patterns, cause categories and volume of product lost — using joins, groupings and conditional filtering.
Impact
Surfaced the cause categories and states responsible for the largest share of product loss, turning a raw incident log into a prioritised risk summary.
Full case study
Business problem
A raw incident log gave no view of where risk actually concentrated, so mitigation effort had no ranking to work from.
Solution
Wrote MySQL queries to aggregate incidents by cause, state and operator, joining reference tables and filtering for the incidents responsible for material product loss.
Insights
- A handful of cause categories accounted for most of the total product lost.
- Incident counts and incident severity ranked states in very different orders.
- Repeat incidents clustered around a limited set of operators and corridors.
Recommendations
- Prioritise inspection budget by product lost rather than raw incident count.
- Target the top recurring cause categories with dedicated preventive maintenance.
- Track repeat-incident corridors on a standing risk register.
- MySQL
- MySQL Workbench
- SQL Joins
- Aggregations
- #Energy
- #Risk Analysis
- #SQL




