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.
CREATE INDEX on a live Postgres table locks writes. CONCURRENTLY fixes that, if you keep it out of a transaction

CREATE INDEX on a live Postgres table locks writes. CONCURRENTLY fixes that, if you keep it out of a transaction

Comments
3 min read
String equality vs semantic equivalence: a bug in a SQL compiler

String equality vs semantic equivalence: a bug in a SQL compiler

Comments
4 min read
My open-source text-to-SQL layer is #1 on BIRD Mini-Dev in all three dialects

My open-source text-to-SQL layer is #1 on BIRD Mini-Dev in all three dialects

Comments
1 min read
SQL EXISTS vs JOIN: Find Customers Who Have Placed an Order

SQL EXISTS vs JOIN: Find Customers Who Have Placed an Order

Comments
3 min read
Deadlocks με ένα συγκεκριμένο παράδειγμα

Deadlocks με ένα συγκεκριμένο παράδειγμα

Comments
1 min read
Isolation levels με απλά παραδείγματα

Isolation levels με απλά παραδείγματα

Comments
1 min read
CDC Deletes, Tombstones and the Idempotent MERGE

CDC Deletes, Tombstones and the Idempotent MERGE

Comments
7 min read
Text-to-SQL answer receipts: the spec I'd write before an AI agent answers one data question

Text-to-SQL answer receipts: the spec I'd write before an AI agent answers one data question

1
Comments 1
16 min read
Your JOIN Looks Correct. But Can You Trust It?

Your JOIN Looks Correct. But Can You Trust It?

3
Comments
6 min read
SQL Pattern Matching Without the Pain: LIKE, Wildcards, and the Gotchas Nobody Warns You About

SQL Pattern Matching Without the Pain: LIKE, Wildcards, and the Gotchas Nobody Warns You About

Comments
4 min read
Tracing AI Agents with OpenTelemetry: A Design for LLM and Agentic AI Observability

Tracing AI Agents with OpenTelemetry: A Design for LLM and Agentic AI Observability

Comments
7 min read
How to Learn SQL Joins (and Stop Mixing Up LEFT and INNER)

How to Learn SQL Joins (and Stop Mixing Up LEFT and INNER)

Comments
5 min read
Foreign Key Cascade Deletes: Un-Indexed FKs, Slow Cascades, and Lock Contention in PostgreSQL

Foreign Key Cascade Deletes: Un-Indexed FKs, Slow Cascades, and Lock Contention in PostgreSQL

1
Comments
6 min read
MySQL to PostgreSQL Schema Conversion: What Each Column Type Should Become, and What Silently Changes

MySQL to PostgreSQL Schema Conversion: What Each Column Type Should Become, and What Silently Changes

1
Comments
12 min read
MySQL LIMIT and OFFSET Explained with Simple Examples

MySQL LIMIT and OFFSET Explained with Simple Examples

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