SQL Airline & Retail Data Analysis
π Overview This project demonstrates SQL-based data analysis using PostgreSQL on airline and retail datasets. The focus is on extracting insights using joins, aggregations, window functions, and business logic.
π― Key Objectives Analyze airline data (flights, bookings, tickets)
Perform retail analysis (stores, orders, products)
Apply real-world business logic using SQL
Showcase advanced SQL skills for data analysis roles
π οΈ Tools & Technologies PostgreSQL SQL
π Key Tasks Performed
Performed joins across multiple tables
Used GROUP BY and aggregations for analysis
Applied window functions (RANK) for ranking insights
Built Common Table Expressions (CTEs)
Derived business insights (revenue, customer spending)
Used CASE statements for categorization
π Project Structure airline_analysis.sql β Contains all SQL queries used in the project
π Sample Analysis
-
Tickets without boarding passes --> Identified tickets that do not have boarding passes using LEFT JOIN.
-
Booking date formatting --> Converted booking dates into YYYY-MM-DD format using date functions.
-
Most popular product per store --> Used CTE + RANK() to identify top-selling products.
-
Airport ranking --> Ranked airports based on number of departures.
-
Revenue analysis --> Calculated total revenue generated by each store.
-
Customer analysis --> Identified top customers based on spending.
π Key Learnings Writing optimized SQL queries
Using window functions for advanced analysis
Handling real-world datasets
Converting raw data into meaningful insights
π Author Sai Sandeep Kuchupudi , Business Intelligence Analyst
Skills: SQL | Power BI | Excel | Data Analysis