Claude Code Plugins

Community-maintained marketplace

Feedback

SQL database querying, optimization, and data management for analytics

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name databases-sql
description SQL database querying, optimization, and data management for analytics
version 2.0.0
sasmp_version 2.0.0
bonded_agent 02-sql-databases-expert
bond_type PRIMARY_BOND
config [object Object]
parameters [object Object]
observability [object Object]

Databases & SQL Skill

Overview

Master SQL and database concepts essential for data analysts, from basic queries to advanced optimization and data warehousing.

Core Topics

SQL Fundamentals

  • SELECT, FROM, WHERE, ORDER BY
  • JOINs (INNER, LEFT, RIGHT, FULL)
  • GROUP BY and aggregate functions
  • Subqueries and CTEs

Advanced SQL

  • Window functions (ROW_NUMBER, RANK, LAG, LEAD)
  • Recursive queries
  • Query optimization and execution plans
  • Index strategies

Database Concepts

  • Relational database design principles
  • Normalization and denormalization
  • Data warehousing concepts (star schema, snowflake)
  • ETL processes

Popular Platforms

  • PostgreSQL
  • MySQL
  • SQL Server
  • BigQuery, Redshift, Snowflake

Learning Objectives

  • Write efficient SQL queries for data extraction
  • Understand database design and optimization
  • Work with cloud data warehouses
  • Implement ETL processes for analytics pipelines

Error Handling

Error Type Cause Recovery
Syntax error Invalid SQL Validate query syntax before execution
Timeout Long-running query Add indexes, optimize query
Connection failed Network/auth issue Retry with exponential backoff
Permission denied Access rights Request appropriate permissions
Deadlock Concurrent transactions Retry transaction

Related Skills

  • foundations (for data concepts)
  • programming (for SQL with Python/R)
  • advanced (for big data processing)