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.
PostgreSQL EXPLAIN ANALYZE: What I Actually Look At in Query Plans

PostgreSQL EXPLAIN ANALYZE: What I Actually Look At in Query Plans

Comments 1
6 min read
Postgres "deadlock detected": Fix the Lock Order First, Then Add a Retry

Postgres "deadlock detected": Fix the Lock Order First, Then Add a Retry

Comments
6 min read
One Null in the Subquery and Your NOT IN Returned Nothing

One Null in the Subquery and Your NOT IN Returned Nothing

Comments
2 min read
# SQL for Data Analysis: Window Functions, Joins, CTEs and Subqueries

# SQL for Data Analysis: Window Functions, Joins, CTEs and Subqueries

Comments
7 min read
# A Practical Guide to Advanced SQL: Window Functions, Joins, CTEs, and Subqueries Using a Hospital Database

# A Practical Guide to Advanced SQL: Window Functions, Joins, CTEs, and Subqueries Using a Hospital Database

Comments
21 min read
Modelling Medical Device Size Variants as SKUs: A Ureteral Stent Example

Modelling Medical Device Size Variants as SKUs: A Ureteral Stent Example

Comments
2 min read
SQL for Web Developers: JOINs, Indexes, CTEs, Window Functions, and N+1 Queries

SQL for Web Developers: JOINs, Indexes, CTEs, Window Functions, and N+1 Queries

Comments
4 min read
Tracking Traffic From ChatGPT, Perplexity and Gemini in GA4 and BigQuery

Tracking Traffic From ChatGPT, Perplexity and Gemini in GA4 and BigQuery

Comments
5 min read
Building Reliable SQL Pipelines with Candor Desktop IDE 2.0: Deterministic SQL Generation

Building Reliable SQL Pipelines with Candor Desktop IDE 2.0: Deterministic SQL Generation

3
Comments
3 min read
VACUUM FULL Locks Your Table the Whole Time. Postgres 19's REPACK CONCURRENTLY Doesn't

VACUUM FULL Locks Your Table the Whole Time. Postgres 19's REPACK CONCURRENTLY Doesn't

Comments
9 min read
5 Things to Check Before Trusting AI-Generated SQL

5 Things to Check Before Trusting AI-Generated SQL

Comments
1 min read
An AI explained SQL GROUP BY in four lines. One of them is wrong.

An AI explained SQL GROUP BY in four lines. One of them is wrong.

Comments
1 min read
Hosted Free Models or a Free Server: Where an Agent's SQL Drafting Loop Should Run

Hosted Free Models or a Free Server: Where an Agent's SQL Drafting Loop Should Run

Comments
7 min read
The N+1 Query Problem — "It works locally, but is extremely slow in production"

The N+1 Query Problem — "It works locally, but is extremely slow in production"

Comments
5 min read
Constraints in PostgreSQL

Constraints in PostgreSQL

Comments
5 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.