Skip to content
Back to skills

Error Handling And Debugging

ASecurity

Sub-skill of sql-queries: Error Handling and Debugging.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
databasesgosqldebugging

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill error-handling-and-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Error Handling And Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Error Handling And Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-error-handling-and-debugging/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-error-handling-and-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sql-queries-error-handling-and-debugging
description: 'Sub-skill of sql-queries: Error Handling and Debugging.'
version: 1.0.0
category: data-analytics
type: reference
scripts_exempt: true
---

# Error Handling and Debugging

## Error Handling and Debugging


When a query fails:

1. **Syntax errors**: Check for dialect-specific syntax (e.g., `ILIKE` not available in BigQuery, `SAFE_DIVIDE` only in BigQuery)
2. **Column not found**: Verify column names against schema -- check for typos, case sensitivity (PostgreSQL is case-sensitive for quoted identifiers)
3. **Type mismatches**: Cast explicitly when comparing different types (`CAST(col AS DATE)`, `col::DATE`)
4. **Division by zero**: Use `NULLIF(denominator, 0)` or dialect-specific safe division
5. **Ambiguous columns**: Always qualify column names with table alias in JOINs
6. **Group by errors**: All non-aggregated columns must be in GROUP BY (except in BigQuery which allows grouping by alias)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.