This repository contains SQL scripts and queries prepared as part of the Advanced SQL . The course focuses on deepening knowledge in SQL, including complex queries, window functions, set operations, and other advanced topics.
The SQL files in this repository are designed to complement the lessons from the Advanced SQL course. Each file corresponds to specific topics and includes examples, exercises, and solutions.
This course is aimed at individuals who already have a foundational understanding of SQL and wish to expand their skills. Topics covered include:
- Advanced Querying Techniques
- Window Functions
- Ranking and Partitioning
- Complex Joins
- Subqueries and Nested Queries
- Set Operations
- Date and Time Manipulation
- Performance Optimization
- Introduction.sql: Basic concepts and a refresher on fundamental SQL commands.
- Advanced_Queries.sql: Complex querying techniques including multiple conditions, case statements, and more.
- Window_Functions.sql: Examples of window functions like
ROW_NUMBER(),RANK(),DENSE_RANK(), andNTILE(). - Ranking_and_Partitioning.sql: Techniques for ranking and partitioning data.
- Complex_Joins.sql: Examples of multi-table joins including inner, outer, cross, and self joins.
- Subqueries.sql: Using subqueries within
SELECT,INSERT,UPDATE, andDELETEstatements. - Set_Operations.sql: Using UNION, INTERSECT, and EXCEPT for combining result sets.
- Date_Time_Manipulation.sql: Handling and manipulating date and time data in SQL.
- Performance_Optimization.sql: Best practices for optimizing SQL queries for performance.
Contributions are welcome! If you have suggestions for improvements or additional examples, feel free to open a pull request.