Skip to content

A structured SQL learning journeyβ€”from DB theory (ER diagrams, normalization) to hands-on SQL Server practice with scripts, backups, and visual aids. Designed for systematic mastery of databases.

Notifications You must be signed in to change notification settings

me-ahnafnasim/sql-for-data-engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

πŸ—„οΈ SQL Learning Journey β€” Structured Mastery of Databases

A structured path from DB theory (ER diagrams, normalization) to hands-on SQL Server practice. Designed for systematic mastery.


πŸ“ Repository Structure

DATABASE/
β”œβ”€β”€ 1) theoretical/              # Core concepts & visual guides
β”‚   β”œβ”€β”€ roadmap.md              # Learning sequence & milestones
β”‚   β”œβ”€β”€ fancy-terms.md          # Glossary of essential terminology
β”‚   β”œβ”€β”€ ER-diagram-relationalDatabase.md
β”‚   β”œβ”€β”€ Three-Schema-Architecture.md
β”‚   β”œβ”€β”€ type-of-relationship.md
β”‚   β”œβ”€β”€ relationshipVSjoin.md
β”‚   β”œβ”€β”€ Complete_DBMS_Notes.md  # Comprehensive reference (see TOC below)
β”‚   β”‚   β”œβ”€β”€ 1. Database Fundamentals
β”‚   β”‚   β”œβ”€β”€ 2. File System vs DBMS
β”‚   β”‚   β”œβ”€β”€ 3. Components of DBMS
β”‚   β”‚   β”œβ”€β”€ 4. Database Architecture
β”‚   β”‚   β”œβ”€β”€ 5. OLAP vs OLTP
β”‚   β”‚   β”œβ”€β”€ 6. Data Abstraction
β”‚   β”‚   β”œβ”€β”€ 7. Data Independence
β”‚   β”‚   β”œβ”€β”€ 8. Database Schema
β”‚   β”‚   β”œβ”€β”€ 9. Constraints
β”‚   β”‚   β”œβ”€β”€ 10. Types of Keys
β”‚   β”‚   β”œβ”€β”€ 11. ER Diagrams
β”‚   β”‚   β”œβ”€β”€ 12. Types of Attributes
β”‚   β”‚   β”œβ”€β”€ 12. Design Technique Model
β”‚   β”‚   β”œβ”€β”€ 13. Normalization
β”‚   β”‚   β”œβ”€β”€ 14. Relational-algebra
β”‚   β”‚   β”œβ”€β”€ 15. SQL Joins
β”‚   β”‚   β”œβ”€β”€ 16. Transactions
β”‚   β”‚   └── 17. DBMS Terminology Reference
β”‚   β”œβ”€β”€ Key.md                  # Deep dive on key types
β”‚   └── *.png / *.jpg           # Visual aids: ERD symbols, joins, normalization
β”œβ”€β”€ 2) practical-sql/           # Hands-on implementation
β”‚   └── sql-server/
β”‚       β”œβ”€β”€ init-sqlserver-mydatabase.sql   # Sample DB setup script
β”‚       β”œβ”€β”€ init-sqlserver-salesdb.sql      # Sales DB setup script
β”‚       β”œβ”€β”€ *.bak               # Ready-to-restore database backups
β”‚       └── *.pdf               # Quick-reference guides (DDL, DML, Joins, etc.)
β”œβ”€β”€ 3) resources/               # Curated learning assets
β”‚   β”œβ”€β”€ book/                   # "Database System Concepts" (textbook)
β”‚   β”œβ”€β”€ sql-data-analytics-project/
β”‚   β”œβ”€β”€ sql-data-warehouse-project/
β”‚   └── sql-ultimate-course-main/
└── Theoretical Exercises/      # Chapter-wise problem sets (Chap 3 & 4)

βš™οΈ SQL Server Setup Guide (Practical Section)

βœ… Step 1: Install SQL Server Management Studio (SSMS)

Note: Microsoft does not use "SSMS 21" naming. The latest stable version is SSMS 19.x (fully compatible with SQL Server 2022). This guide covers the current official release.

Installation Steps:

  1. Download SSMS
    β†’ Official download: https://aka.ms/ssmsfullsetup
    β†’ Click "Download SQL Server Management Studio (SSMS)"

  2. Run Installer
    β†’ Locate SSMS-Setup-ENU.exe β†’ Right-click β†’ Run as administrator
    β†’ Accept license terms β†’ Click Install

  3. Complete Setup
    β†’ Wait 5–10 minutes for installation
    β†’ Click Close β†’ Recommended: Restart your computer

  4. Verify Installation
    β†’ Press Win + S β†’ Type "SSMS" β†’ Open application
    β†’ Check version: Help β†’ About β†’ Should display v19.x.x


βœ… Step 2: Connect to SQL Server

Scenario Server Name Authentication Notes
Local default instance localhost or . Windows Authentication Requires SQL Server installed locally
SQL Server Express localhost\SQLEXPRESS Windows Authentication Default instance name for Express edition

πŸ’‘ Don't have SQL Server installed?
β†’ Download free SQL Server 2022 Express: https://www.microsoft.com/sql-server/sql-server-downloads
β†’ During install: Select "Basic" β†’ Note your instance name β†’ Connect via SSMS using that name


βœ… Step 3: Restore Practice Databases

-- Method 1: Restore from .bak file (recommended)
-- In SSMS: Right-click Databases β†’ Restore Database β†’ Device β†’ Browse β†’ Select .bak file β†’ OK

-- Method 2: Run initialization script
-- Open init-sqlserver-mydatabase.sql β†’ Click "Execute" (F5)

πŸ“Œ Pro Tip: Keep Execution order.pdf open while practicingβ€”it reveals the logical query execution sequence (FROM β†’ WHERE β†’ GROUP BY β†’ HAVING β†’ SELECT β†’ ORDER BY), which differs from written syntax order.


🧭 Recommended Learning Path

  1. Theory First
    β†’ Read roadmap.md β†’ Study Complete_DBMS_Notes.md β†’ Review visual aids

  2. Validate Understanding
    β†’ Solve problems in Theoretical Exercises/ before writing code

  3. Hands-On Practice
    β†’ Install SSMS β†’ Restore .bak files β†’ Experiment using PDF guides

  4. Extend Knowledge
    β†’ Explore analytics/warehouse projects in resources/


πŸ™ Credits & Acknowledgements

The Datawithbaraa was created through immersive learning inspired by Datawithbaraa. His clear, structured approach to database concepts and SQL practice provided the foundational framework for this learning journey. Thank you for making complex topics accessible and actionable.


πŸ“œ License

MIT License

Copyright (c) 2026 Ahnaf Nasim

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

πŸ“Œ Quick Reference Cheat Sheet

Concept Files to Pair
Keys Key.md + typesOfKeys.jpg + key.jpg
Joins relationshipVSjoin.md + img-type-of-joins.png + Join.pdf
Normalization normalization1.png β†’ normalization2.png (study sequentially)
ER Diagrams ER-diagram-relationalDatabase.md + ERD_Symbols_and_Notations.jpg

✨ "Theory without practice is sterile. Practice without theory is blind."
This repository merges bothβ€”designed for learners who build to understand, not just to execute.

About

A structured SQL learning journeyβ€”from DB theory (ER diagrams, normalization) to hands-on SQL Server practice with scripts, backups, and visual aids. Designed for systematic mastery of databases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages