# sq
> jq-style access to SQL databases, CSV, and Excel files

## Summary
Unified jq-style query tool for SQL databases, CSV, and Excel files

## Capabilities
- Query SQL databases with jq-style syntax
- Read CSV and Excel files
- Output in multiple formats
- Cross-database querying

## When to Use
- When querying different data sources with a unified syntax
- When working with both databases and files

## When NOT to Use
- When you only need standard SQL

## Related Tools
- [xsv](/tools/xsv) (complementary)
- [csvq](/tools/csvq) (complementary)
- [tv](/tools/tv) (complementary)
- [dasel](/tools/dasel) (complementary)

---
Source: https://littlescripts.sh/tools/sq
