sql-and-query-mastery

Teach advanced SQL techniques and data modeling for scalable systems.

6|2|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/Gaku52/software-engineering-universe --skill sql-and-query-mastery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-and-query-mastery
Source: https://github.com/Gaku52/software-engineering-universe/tree/main/06-data-and-security/sql-and-query-mastery
Command: npx skills add https://github.com/Gaku52/software-engineering-universe --skill sql-and-query-mastery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of crafting correct, efficient SQL queries and robust data models to prevent common pitfalls in data-intensive applications.

Core Features & Use Cases

  • Learn advanced SQL techniques (joins, window functions, CTEs) and normalization to design robust schemas.
  • Optimize query performance with indexing strategies, transaction management, and safe data access patterns.
  • Apply techniques to OLTP and analytics workloads, including reporting, migrations, and data integration.

Quick Start

Run an initial SQL audit on a representative dataset to identify slow queries and ensure correctness.

Frequently Asked Questions about sql-and-query-mastery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the best way to optimize slow SQL queries for scalable systems?

SQL query optimization for scalable systems involves applying indexing strategies, transaction management, and advanced techniques like window functions and CTEs. This approach ensures correct data access patterns and improved performance across OLTP and analytics workloads.

How do I design robust data models using normalization for PostgreSQL and MySQL?

Designing robust data models using normalization involves structuring schemas to prevent common pitfalls in data-intensive applications. This technique ensures correctness and scalability across PostgreSQL, MySQL, and other major database engines.

How do window functions and CTEs work in advanced SQL querying?

Window functions and CTEs in SQL querying enable complex analytical computations and readable temporary result sets. They allow efficient reporting and data integration tasks across major database engines without requiring multiple passes over the data.

Can I apply these SQL data modeling techniques to both OLTP and analytics workloads?

Yes, these SQL data modeling and querying techniques apply to both OLTP and analytics workloads. The approach covers normalization, indexing, and safe data access patterns tailored for reporting, migrations, and data integration scenarios.

When do I need transaction management to ensure database correctness during migrations?

Transaction management is needed during migrations and data integration to ensure database correctness and safe data access patterns. It prevents partial updates and data anomalies when executing complex SQL queries on scalable systems.