A structured collection of SQL notes, practical examples, solved questions, and explanations covering basic to advanced SQL concepts.
This repository documents my SQL learning journey as I develop my skills for a career in Data Analytics. It serves as a reference for understanding SQL concepts, practicing queries, revising important topics, and preparing for Data Analyst interviews.
- Learn SQL concepts from basic to advanced levels.
- Develop strong query-writing skills.
- Understand SQL syntax and practical applications.
- Maintain organized notes for consistent revision.
- Improve logical thinking and problem-solving skills.
- Prepare for technical interviews and real-world data analysis tasks.
| File | Description |
|---|---|
01-sql-basics.md |
Fundamental SQL concepts, commands, and queries. |
02-sql-aggregate-functions.md |
Aggregate functions, GROUP BY, and HAVING. |
03-sql-intermediate-sql.md |
Intermediate concepts, JOINs, subqueries, and CTEs. |
04-advanced-sql.md |
Window functions, ranking functions, and advanced techniques. |
- Introduction to SQL
- SELECT and SELECT DISTINCT
- WHERE clause
- AND, OR, NOT operators
- Comparison operators
- BETWEEN, IN, NOT IN
- LIKE and Wildcards
- IS NULL and IS NOT NULL
- ORDER BY and LIMIT
- Aliases (AS)
- COUNT()
- SUM()
- AVG()
- MIN() and MAX()
- GROUP BY
- HAVING
- CASE WHEN
- IFNULL() and COALESCE()
- JOINs
- Subqueries
- Common Table Expressions (CTEs)
- UNION and UNION ALL
- Window Functions
- Ranking Functions
- Advanced Query Techniques
Each topic is organized to make learning and revision easier.
- Definition: Understand the concept and its purpose.
- Syntax: Learn the correct SQL query structure.
- Examples: Explore practical SQL queries.
- Explanation: Understand how each query works.
- Practice Questions: Apply concepts through solved problems.
- MySQL
- MySQL Workbench
- Git and GitHub
- Markdown
- Start with the Basic SQL section.
- Progress through aggregate and intermediate concepts.
- Explore advanced SQL techniques.
- Practice writing queries alongside the examples.
- Revisit the notes for revision and interview preparation.
Contributions and suggestions are welcome.
If you find an error, have an improvement in mind, or want to suggest additional SQL practice questions, please refer to CONTRIBUTING.md for contribution guidelines.
This repository is continuously updated as I explore new SQL concepts, solve practice questions, and strengthen my understanding of database querying.
This project is licensed under the MIT License.
Priya Yadav
If you find this repository useful starred it or fork it, feel free to explore the notes and use them for your own SQL learning and revision.