Skip to content

sagarhmgr/SQL_PROJECT2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”น 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.

About

SQL_PROJECT2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published