Agent skill
sql-and-query-mastery
Stars
5
Forks
0
Install this agent skill to your Project
npx add-skill https://github.com/Gaku52/claude-code-skills/tree/main/ja/06-data-and-security/sql-and-query-mastery
SKILL.md
SQL とクエリマスタリー
SQL はデータ操作の共通言語。基本構文から高度なウィンドウ関数、クエリ最適化、実行計画分析、データベース固有機能まで、SQL の全てを体系的に解説する。
このSkillの対象者
- SQL を体系的に学びたいエンジニア
- クエリパフォーマンスを最適化したい方
- データベース設計と運用に関わる方
前提知識
- リレーショナルデータベースの基礎概念
- 基本的な SQL(SELECT/INSERT/UPDATE/DELETE)
学習ガイド
00-basics — SQL の基礎
| # | ファイル | 内容 |
|---|
01-advanced — 高度な SQL
| # | ファイル | 内容 |
|---|
02-optimization — クエリ最適化
| # | ファイル | 内容 |
|---|
03-specific — データベース固有機能
| # | ファイル | 内容 |
|---|
クイックリファレンス
SQL パフォーマンスチェックリスト:
✓ EXPLAIN ANALYZE で実行計画を確認
✓ 適切なインデックスを作成
✓ SELECT * を避け、必要なカラムのみ
✓ N+1 クエリを JOIN で解決
✓ 大量データは LIMIT/OFFSET → カーソルベース
✓ 集約は DB 側で実行
参考文献
- PostgreSQL. "Documentation." postgresql.org/docs, 2024.
- Winand, M. "SQL Performance Explained." use-the-index-luke.com, 2012.
- Molinaro, A. "SQL Cookbook." O'Reilly, 2020.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
computer-science-fundamentals
A comprehensive guide covering the fundamentals of computer science. From hardware internals and data representation to algorithms, data structures, computation theory, programming paradigms, and software engineering basics — a systematic guide to all the CS foundations every engineer needs.
5
0
Explore
operating-system-guide
5
0
Explore
programming-language-fundamentals
5
0
Explore
algorithm-and-data-structures
5
0
Explore
linux-cli-mastery
5
0
Explore
aws-cloud-guide
5
0
Explore
Didn't find tool you were looking for?