This task is part of a Data Analyst Internship and focuses on using SQL queries to extract and analyze data from a PostgreSQL database.
- PostgreSQL
- pgAdmin / DBeaver
- Dataset:
cleaned_superstore_iso.csv
(imported as public."Superstore" table)
-
Basic Data Exploration
- Selected first 10 rows
- Filtered orders by date
-
Aggregations
- Total sales
- Average discount
-
Group-wise Analysis
- Sales by Category
- Profit by Region
-
Subqueries
- Found customers with sales above average
-
Views
- Created a monthly sales view
-
Query Optimization
- Created indexes on
order_date
andcustomer_id
- Created indexes on
-
Null Handling
- Used
COALESCE
and counted NULL values
- Used
task3_queries.sql
– All SQL queriesScreenshots/
– Folder with screenshots of query resultsREADME.md
– This file
Screenshots of all query outputs are available in the Screenshots/
folder.