This repository contains my structured notes and exercises for learning and practicing SQL. It is designed as both a reference guide and a hands-on lab environment.
notes/β Markdown summaries of SQL conceptsscripts/β Sample SQL queries and scriptsdata/β Example datasets for practice (SQLite/MySQL compatible)
- Basic SQL syntax (SELECT, INSERT, UPDATE, DELETE)
- Filtering and sorting with
WHERE,ORDER BY,LIMIT - Joins: INNER, LEFT, RIGHT, FULL
- Aggregations:
GROUP BY,HAVING - Subqueries and nested queries
- Views, indexes, and performance optimization
You can run the scripts with any SQL engine:
# SQLite
sqlite3 sample.db < scripts/example.sql
# MySQL
mysql -u root -p < scripts/example.sqlBuild a strong foundation in SQL for data analysis, business intelligence, and backend integration.