Skip to content

jeisteve999/SQL-for-Data-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 SQL for Data Analysis

Welcome to my SQL for Data Analysis repository!
This repo contains a curated collection of SQL Server scripts developed during my journey through data analytics training.

πŸ› οΈ It includes hands-on exercises and mini-projects that simulate real-world data tasks such as:

  • βœ… Data cleaning & transformation
  • 🧩 Joins & subqueries
  • πŸ“Š Business analysis
  • πŸ” Control flow & procedures
  • πŸ” Security configurations
  • 🧱 Normalization & relational design

All scripts are written in T-SQL and tested in SQL Server Management Studio (SSMS).


πŸ“ Project Structure

πŸ” 1. SQL Analysis Practice (Foundational to Intermediate)

These scripts cover basic queries, control flow, normalization, and logic development for SQL Server learners.

File Description
basic_sql_practice.sql Basic syntax: INSERT, CASE, JOINS, IF/ELSE, WHILE, LEN
sql_system_and_insert_practice.sql System views, table creation, multi-row inserts, language settings
sql_flow_and_union_practice.sql Loops with GOTO, conditional updates, RAND(), and UNION
restaurant_lab_practice2.sql Restaurant + HR schema: keys, views, XML, stored procs
sql_lab_practice.sql Normalization (1NF/2NF), constraints, indexing, user roles

πŸ” 2. SQL Server Security Scripts

Real-world practices in database encryption, auditing, and user management.

File Description
security_audit.sql Auditing roles, encryption keys, secure connection verification
security_and_users.sql TDE, value encryption, role management, user creation

βœ… Requirements

  • Microsoft SQL Server 2016 or later
  • SQL Server Management Studio (SSMS)
  • Optional: AdventureWorks or personal dataset

---Feel free to fork, adapt, and learn from these scripts. Contributions and feedback are always welcome!

About

This repository contains SQL scripts and queries developed during my data analytics training. The exercises and mini-projects focus on real-world tasks like data cleaning, transformation, joins, and business insights generation.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages