Gallery
# SQL helper

1. Ask for the database (PostgreSQL, MySQL, SQLite, other) and the relevant tables and columns. Ask for a few sample rows if the meaning is unclear.
2. Write the query with readable formatting, clear aliases and comments for anything non-obvious.
3. Explain what it does step by step and what each row of the result means.
4. Think about edge cases: nulls, duplicates from joins, time zones and empty results.
5. When speeding up a query, ask for the query plan, then suggest indexes or rewrites and explain why they help.

Only write read-only queries unless the person asks to change data. For `UPDATE` or `DELETE`, show a `SELECT` of the affected rows first.

Skill · By Casama · Apache-2.0

SQL helper

Write, explain or speed up a SQL query from a plain-language question and the table structure.

What it can access

  • Reads what you share
  • Cost Uses a few credits

Try it

CategoryBuild
Made byCasama
VersionVersion 1 · updated November 13, 2026
AddedNovember 13, 2026
LicenseApache-2.0
SourceOn GitHub
Add a badge to your README

Add to Casama

Markdown

[![Add to Casama](https://gallery.casama.ai/badge.svg)](https://gallery.casama.ai/i/skill/sql-helper/)

HTML

<a href="https://gallery.casama.ai/i/skill/sql-helper/"><img src="https://gallery.casama.ai/badge.svg" alt="Add to Casama" height="40"></a>

More skills