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.
Recursive CTEs, explained from first principles

Recursive CTEs, explained from first principles

3
Comments 2
5 min read
Database Indexing Explained: How Indexes Make SQL Queries Faster

Database Indexing Explained: How Indexes Make SQL Queries Faster

1
Comments
7 min read
The Transactional Outbox Pattern: Dual-Write Consistency in Distributed Systems

The Transactional Outbox Pattern: Dual-Write Consistency in Distributed Systems

Comments
3 min read
SQL DATEDIFF Internals: Why 2 Seconds Can Equal 1 Full Day (Boundary Traps)

SQL DATEDIFF Internals: Why 2 Seconds Can Equal 1 Full Day (Boundary Traps)

Comments
2 min read
How to return top-N from each group with GROUP_CONCAT()

How to return top-N from each group with GROUP_CONCAT()

Comments
6 min read
Three ways your dashboard can be correct and still lie

Three ways your dashboard can be correct and still lie

Comments
3 min read
SQLazy: Get the Latest Closed Before ConfirmationStarted

SQLazy: Get the Latest Closed Before ConfirmationStarted

5
Comments
3 min read
🚨 3 PostgreSQL Anti-Patterns That Are Silently Killing Your App's Performance

🚨 3 PostgreSQL Anti-Patterns That Are Silently Killing Your App's Performance

10
Comments
3 min read
How we put 16 database engines behind one result grid

How we put 16 database engines behind one result grid

Comments
6 min read
When Runtime Plans Enter the Prompt: A Structured Debate for SQL Review Bots

When Runtime Plans Enter the Prompt: A Structured Debate for SQL Review Bots

Comments
8 min read
Ranking a Two-Dimensional Catalog With One SQL Expression

Ranking a Two-Dimensional Catalog With One SQL Expression

Comments
5 min read
SQL Basics: A Real-World Guide to Databases and Queries

SQL Basics: A Real-World Guide to Databases and Queries

Comments
4 min read
SQL Starters

SQL Starters

Comments
2 min read
What Is SQL Injection? How User Input Can Become a Database Command

What Is SQL Injection? How User Input Can Become a Database Command

1
Comments
4 min read
Speeding Up a Slow PL/SQL Routine with BULK COLLECT and FORALL

Speeding Up a Slow PL/SQL Routine with BULK COLLECT and FORALL

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