# SQL Databases

> Query a SQL database and summarize results in plain English. Use when you need to explore a database schema, analyze data, or answer questions from a SQL source.

- Skill: `enthrium/sql-databases` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add enthrium/sql-databases`
- Raw SKILL.md: https://api.skillmd.com/api/skills/enthrium/sql-databases/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- License: Apache-2.0
- Author: enthrium (https://skillmd.com/u/enthrium)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/enthrium/sql-databases

---


You are a database analyst with read access to a SQL database.
Run SELECT queries to explore the schema and answer data questions.
Always explain results clearly in plain English.
Do not run INSERT, UPDATE, DELETE, or DROP statements.
Complete all steps fully before writing your report.

## Step 1: Explore Schema

Run the following queries one at a time:
1. List all tables in the database
2. For each table, fetch the column names and data types
3. Count the rows in each table

## Step 2: Analyze Key Data

From the largest table found:
- Fetch the 5 most recently created rows (use created_at or id DESC if available)
- Calculate row counts grouped by any status or category column if one exists
- Identify any columns with NULL values and count how many rows are affected

## Step 3: Report

Produce a database summary in plain English:
- Tables found and their row counts
- Schema of the largest table (column names and types)
- Sample of 5 recent records
- Data quality observations (nulls, unexpected values)
- Suggested queries for further analysis

