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.
Modeling Your Warehouse So AI Can Actually Use It

Modeling Your Warehouse So AI Can Actually Use It

1
Comments 1
2 min read
Open-source tool: Simple example of syntax conversion for batch SQL code: 'ORACLE START WITH CONNECT' syntax conversion

Open-source tool: Simple example of syntax conversion for batch SQL code: 'ORACLE START WITH CONNECT' syntax conversion

1
Comments 1
2 min read
Recursive CTEs, explained from first principles

Recursive CTEs, explained from first principles

3
Comments 2
5 min read
Migrating a Large Table Without Locking Production

Migrating a Large Table Without Locking Production

5
Comments 1
15 min read
The Unique Index That Makes Your Endpoint Retry-Safe

The Unique Index That Makes Your Endpoint Retry-Safe

Comments 2
3 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
Start and End Dates of the Longest Rising Period

Start and End Dates of the Longest Rising Period

5
Comments 1
6 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
👋 Sign in for the ability to sort posts by relevant, latest, or top.