Skip to content

aminizahra/SQL-Queries-AdventureWorks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SQL Queries: AdventureWorks Analysis

This repository contains a comprehensive collection of SQL scripts and queries performed on the Microsoft AdventureWorks sample database. The project demonstrates advanced data retrieval, manipulation, and analysis techniques used in real-world business scenarios.

SQL Server T-SQL Database Status

πŸ“Œ Project Overview

The goal of this project is to showcase proficiency in T-SQL by solving business problems related to sales, inventory, and customer management for a large-scale manufacturing company.

πŸ“‚ Repository Structure

The queries are organized into logical modules based on SQL operations:

Directory Description
Aggregation Summary statistics using GROUP BY, SUM, AVG, and HAVING clauses.
Join Multi-table relational queries using INNER, LEFT, and CROSS JOINS.
SubQuery Complex data filtering using nested queries and correlated subqueries.
Views Implementation of virtual tables for simplified data access and security.
Update & Delete Data manipulation scripts for maintaining database integrity.

πŸ› οΈ Key SQL Features Implemented

  • Relational Mapping: Connecting Sales, Production, and Person schemas.
  • Data Aggregation: Calculating KPIs like total revenue and average order value.
  • Nested Logic: Using Subqueries to isolate specific data segments.
  • Performance Patterns: Writing clean, readable, and optimized T-SQL code.

πŸš€ Getting Started

  1. Database: You will need the AdventureWorks backup file from Microsoft's official documentation.
  2. Environment: Best executed in SQL Server Management Studio (SSMS) or Azure Data Studio.
  3. Execution: Open the .sql files and execute them against your local instance of the AdventureWorks database.

πŸ‘€ Author: Zahra Amini

GitHub Logo GitHub

Portfolio Logo Portfolio

LinkedIn Logo LinkedIn


This repository serves as a professional SQL Portfolio. Feedback and contributions are welcome!

About

Some queries on the AdventureWorks2019 database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages