Skip to content

About

A collection of SQL practice questions, solutions, definitions, and examples covering basic to advanced SQL concepts. Created for consistent revision, hands-on practice.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SQL Practice and Notes

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.

Objectives

  • 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.

Repository Structure

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.

Topics Covered

1. Basic SQL

  • 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)

2. Aggregate Functions

  • COUNT()
  • SUM()
  • AVG()
  • MIN() and MAX()
  • GROUP BY
  • HAVING

3. Intermediate SQL

  • CASE WHEN
  • IFNULL() and COALESCE()
  • JOINs
  • Subqueries
  • Common Table Expressions (CTEs)
  • UNION and UNION ALL

4. Advanced SQL

  • Window Functions
  • Ranking Functions
  • Advanced Query Techniques

Practice Format

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.

Tools and Technologies

  • MySQL
  • MySQL Workbench
  • Git and GitHub
  • Markdown

How to Use This Repository

  1. Start with the Basic SQL section.
  2. Progress through aggregate and intermediate concepts.
  3. Explore advanced SQL techniques.
  4. Practice writing queries alongside the examples.
  5. Revisit the notes for revision and interview preparation.

Contributing

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.

Learning Progress

This repository is continuously updated as I explore new SQL concepts, solve practice questions, and strengthen my understanding of database querying.

License

This project is licensed under the MIT License.

Author

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.

About

A collection of SQL practice questions, solutions, definitions, and examples covering basic to advanced SQL concepts. Created for consistent revision, hands-on practice.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors