Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Sql Analytics?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-sql-analytics)
---
name: sql-analytics
description: "Analytical SQL: CTEs, window functions, correct aggregations and readable queries."
tags: [data-ml, database]
---
# Sql Analytics
## When to use
- Reports, metrics, ad-hoc analysis
## Procedure
1. Start from grain: one row per what?
2. Use CTEs for steps
3. Use window functions for running totals and ranks
4. Check joins for fan-out
5. Validate totals against a known source
## Checklist
- [ ] Grain documented
- [ ] Totals reconciled
## Anti-patterns
- COUNT(*) after a fan-out join