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.
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
9 PostgreSQL fixes that took real queries from ~100 ms to under 1 ms (with EXPLAIN output)

9 PostgreSQL fixes that took real queries from ~100 ms to under 1 ms (with EXPLAIN output)

3
Comments
4 min read
Constraints in PostgreSQL

Constraints in PostgreSQL

Comments
5 min read
SQL_Sheet

SQL_Sheet

1
Comments
3 min read
Oracle to Snowflake migration validation: a six-gate acceptance framework

Oracle to Snowflake migration validation: a six-gate acceptance framework

Comments
4 min read
The dbt test that would have caught our duplicate orders

The dbt test that would have caught our duplicate orders

Comments 1
1 min read
The 4 kinds of ALTER TABLE that cause production incidents (and a 5-minute review for each)

The 4 kinds of ALTER TABLE that cause production incidents (and a 5-minute review for each)

Comments
4 min read
SQL Joins Explained with One Tiny Dataset (Plus 5 Interview Questions)

SQL Joins Explained with One Tiny Dataset (Plus 5 Interview Questions)

Comments
5 min read
Validando CPF dentro do PostgreSQL: função, CHECK constraint e domínio

Validando CPF dentro do PostgreSQL: função, CHECK constraint e domínio

Comments
3 min read
ClickHouse IP Geolocation for Billions of Log Rows

ClickHouse IP Geolocation for Billions of Log Rows

1
Comments
18 min read
Flag Office Visits Within 6 Months After Surgery

Flag Office Visits Within 6 Months After Surgery

5
Comments
6 min read
How to format SQL without uploading your queries

How to format SQL without uploading your queries

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