๐น Overview
This project explores AdventureWorks sample database with multiple exercises covering purchasing, sales, HR, and person/address data. The goal was to practice SQL joins, unions, case logic, derived columns, and date functions in real-world-like scenarios.
๐น Skills Demonstrated
Joins (INNER, LEFT, RIGHT) across multiple schemas (Purchasing, Sales, Person, HR)
CASE statements for conditional derived columns
ISNULL() handling for missing values
UNION ALL to combine structurally similar tables
Date functions (EOMONTH, DATEDIFF, MONTH) for dynamic calculations
๐น Key Exercises
Purchasing Orders โ Categorized order sizes and enriched with Product hierarchy.
Sales vs Purchasing โ Combined datasets into a unified schema using UNION ALL.
People & Addresses โ Built conditional full names and applied postal code filters.
Employees & Job Categories โ Derived JobCategory dynamically from JobTitle.
Dynamic Date Calculation โ Found days remaining in the current month.
๐น Insights
CASE logic allows creation of business-friendly derived attributes such as order categories and job categories.
Data standardization between Sales and Purchasing tables enables direct comparisons via UNION.
Null handling with ISNULL ensures clean and user-friendly outputs.