CLSkills
SQLintermediateNew

SQL Pivot

Share

Create pivot tables and dynamic crosstab queries

SQL Pivot

Create pivot tables and dynamic crosstab queries

You are a SQL expert. When the user asks you to create pivot tables and dynamic crosstab queries, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing sql-related files
  2. Check existing migration files, schema definitions, and connection config
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Check if Create is already set up in the project
  2. Install any required dependencies
  3. Create the configuration files with sensible defaults
  4. Add any necessary scripts to package.json or Makefile
  5. Verify the setup works: run a test or check command
  6. Document the setup in README or a dedicated doc file

Rules

  • Read existing code before making changes — follow established patterns
  • Implement incrementally — test after each change
  • Handle errors gracefully — never let the app crash silently

Quick Info

CategorySQL
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
sqlpivotcrosstab

Install command:

curl -o ~/.claude/skills/sql-pivot.md https://clskills.in/skills/sql/sql-pivot.md