Skip to content

rahularya3749/spacex-launch-sql-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

sql-spacex

SQL-powered analysis of SpaceX launch data using SQLite in a Python environment. Explore payloads, landing outcomes, and booster performance through SQL queries and pandas.

Dashboard

πŸ“Š Interactive dashboard built in Power BI showcasing payload mass, landing outcome, booster version comparison with Launch site.

πŸš€ SpaceX Launch SQL Analysis

This project demonstrates SQL-powered exploration of SpaceX launch data using a local SQLite database and Jupyter Notebook. It combines SQL querying with Python's pandas and SQLite to uncover insights into SpaceX’s missions, including launch sites, booster performance, payloads, and landing outcomes.


πŸ“Š Overview

Attribute Details
Dataset SpaceX Launch Dataset (IBM Capstone)
Source CSV Link
Tools SQL (via ipython-sql), SQLite, pandas
Environment Jupyter Notebook
Focus SQL Queries & Data Analysis

βœ… Objectives

  • Connect to a SQLite database and load launch data
  • Clean and prepare the dataset using pandas
  • Create SQL tables and run queries inside Jupyter using %sql
  • Perform exploratory analysis using SQL:
    • Launch sites
    • Booster versions
    • Payload statistics
    • Landing outcomes
    • Mission trends over time

πŸ” Key Analysis Tasks

Task Description
πŸ“Œ Task 1 List all distinct launch sites
πŸ“Œ Task 2 Filter launches starting with "CCA"
πŸ“Œ Task 3 Total payload mass by NASA (CRS)
πŸ“Œ Task 4 Average payload for F9 v1.1
πŸ“Œ Task 5 First successful ground pad landing date
πŸ“Œ Task 6 Boosters with 4000–6000kg payloads & drone ship landings
πŸ“Œ Task 7 Count of missions by outcome
πŸ“Œ Task 8 Boosters carrying the maximum payload
πŸ“Œ Task 9 2015 landing outcome by month
πŸ“Œ Task 10 Landing outcomes between specific dates

🧠 Skills Demonstrated

  • πŸ—ƒοΈ SQL query writing & filtering
  • πŸ“Š Aggregations, sorting, and conditional grouping
  • 🧩 CASE WHEN logic for labeling and categorization
  • πŸ“† Date parsing and filtering by time ranges
  • πŸ““ Jupyter Notebook integration for SQL workflows using %load_ext sql and %sql magic
  • 🧹 Basic data cleaning and preprocessing with pandas
  • πŸ”— SQL database setup with Python using sqlite3 and pandas .to_sql() method for seamless transition from CSV to SQL

πŸ‘€ Author

Rahul Arya
πŸŽ“ B.Sc. Physics | πŸ“œ IBM & Stanford ML Certified | πŸ’‘ Data Science Enthusiast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors