DEV Community

select * from SQL

Posts on tips and tricks, using and learning about SQL for database development and analysis.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
No More Rewriting the Same Logic for Every Database

No More Rewriting the Same Logic for Every Database

5
Comments
4 min read
PostgreSQL Graph Queries with MATCH: 3 Practical Traversal Patterns

PostgreSQL Graph Queries with MATCH: 3 Practical Traversal Patterns

Comments
2 min read
CVE-2026-24031 Analysis — Dovecot SQL-Based Authentication Bypass (an auth_username_chars Regression)

CVE-2026-24031 Analysis — Dovecot SQL-Based Authentication Bypass (an auth_username_chars Regression)

1
Comments
6 min read
Four traps in querying 1.79M Overture Maps records with DuckDB

Four traps in querying 1.79M Overture Maps records with DuckDB

Comments
4 min read
Paginating hybrid search on Postgres, and why the obvious fix is worse

Paginating hybrid search on Postgres, and why the obvious fix is worse

Comments
4 min read
Window Functions Demystified: ROW_NUMBER vs RANK vs DENSE_RANK (Execution Internals)

Window Functions Demystified: ROW_NUMBER vs RANK vs DENSE_RANK (Execution Internals)

Comments
2 min read
Temp Table vs View in SQL: A Saved Answer or a Saved Question

Temp Table vs View in SQL: A Saved Answer or a Saved Question

Comments
13 min read
How to Reconcile Two Tables in SQL When the Row Counts Match

How to Reconcile Two Tables in SQL When the Row Counts Match

1
Comments
14 min read
Subquery vs CTE in SQL: Same Logic, One You Can Check

Subquery vs CTE in SQL: Same Logic, One You Can Check

Comments
14 min read
Running Total in SQL: The Window Frame That Decides the Answer

Running Total in SQL: The Window Frame That Decides the Answer

Comments
14 min read
dbt Was Not Designed for Multi-Tenant SaaS. Here's How I Made It Work.

dbt Was Not Designed for Multi-Tenant SaaS. Here's How I Made It Work.

Comments
4 min read
Sampling rate is a correctness property, not a performance knob

Sampling rate is a correctness property, not a performance knob

1
Comments
5 min read
Inside PostgreSQL MATCH Queries: Syntax, Paths, and Parameters with pg_igraph

Inside PostgreSQL MATCH Queries: Syntax, Paths, and Parameters with pg_igraph

Comments
3 min read
Turn any SQL schema into an interactive ER diagram

Turn any SQL schema into an interactive ER diagram

Comments
2 min read
How Express Actually Talks to a Database: From HTTP Request to SQL Query

How Express Actually Talks to a Database: From HTTP Request to SQL Query

Comments
12 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.