# ben-nour/SQL-tips-and-tricks

SQL tips and tricks

Repository: https://github.com/ben-nour/SQL-tips-and-tricks
Canonical: https://ross.abutalabs.com/products/sql-tips-and-tricks
Language: SQL
License: MIT
License Family: permissive
Topics: sql, tips-and-tricks, tips, snowflake, mysql, sqlite
Last push: 2025-11-23T09:17:14+00:00

## Health v2 (maintenance only)
Score: 46/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 53, release rhythm 35, longevity 50
- inputs: {"age_days": 713, "days_push": 283, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2300, forks 107 (observed 2026-08-28T04:06:35.343863+00:00)

## What it is
A curated, opinionated collection of SQL tips and tricks covering formatting, data wrangling, performance, and common mistakes. It is written from the perspective of a working data analyst and applies to various RDBMSs like MySQL, SQLite, and Snowflake.

## Use cases
- learn sql best practices
- improve sql query readability
- avoid common sql mistakes like not in with null
- optimize slow sql queries
- learn ctes and window function filtering
- sql tips for data analysts

## When to choose
- you are a beginner or intermediate SQL user wanting practical, experience-based advice
- you want concise tips on formatting, joins, and query performance
- you work across multiple RDBMSs like MySQL, SQLite, or Snowflake

## When to avoid
- you need comprehensive SQL documentation or a formal tutorial course
- you need dialect-specific advanced features for one database
- you want executable tooling rather than written guidance

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation
- domain: databases, tutorials, data-science
- platform: -
- tags: sql, tips-and-tricks, query-optimization, data-analysis, mysql, sqlite, snowflake

## Member repositories
- ben-nour/SQL-tips-and-tricks (main) score 46

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.343863+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:40:13.341422+00:00, confidence not recorded.
  - readme: https://github.com/ben-nour/SQL-tips-and-tricks (fetched 2026-08-28T04:06:35.343863+00:00, sha 6df47450762f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
