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.
Production SQLite in 2026: Running Laravel Without a Database Server

Production SQLite in 2026: Running Laravel Without a Database Server

Comments
3 min read
Why Regex SQL Converters Break on Legacy Stored Procedures and How to Fix Them)

Why Regex SQL Converters Break on Legacy Stored Procedures and How to Fix Them)

Comments
3 min read
Polymorphic Associations in PostgreSQL: One commentable_id Column or a Foreign Key per Table?

Polymorphic Associations in PostgreSQL: One commentable_id Column or a Foreign Key per Table?

Comments
7 min read
Zero updated rows do not fail a D1 batch: testing the rollback boundary

Zero updated rows do not fail a D1 batch: testing the rollback boundary

1
Comments 2
4 min read
5 SQL patterns that run fine and still return the wrong answer

5 SQL patterns that run fine and still return the wrong answer

1
Comments
4 min read
NOT IN can be executed as an Anti-Join (NOT EXISTS) in PG19

NOT IN can be executed as an Anti-Join (NOT EXISTS) in PG19

Comments
7 min read
Apache Iceberg Query Optimization: Production Guide

Apache Iceberg Query Optimization: Production Guide

Comments
40 min read
ersioning Business Semantics for Enterprise AI

ersioning Business Semantics for Enterprise AI

Comments
7 min read
SQL Database Projects and AI: A Match Made in Heaven

SQL Database Projects and AI: A Match Made in Heaven

1
Comments
8 min read
Window functions vs Aggregate functions

Window functions vs Aggregate functions

Comments
9 min read
Text-to-SQL in Practice: When to Trust AI Output and When to Gate It

Text-to-SQL in Practice: When to Trust AI Output and When to Gate It

Comments 1
4 min read
Cursor Pagination vs Offset Pagination: Which One Should You Use?

Cursor Pagination vs Offset Pagination: Which One Should You Use?

Comments
3 min read
Same question, same database, two callers

Same question, same database, two callers

1
Comments
2 min read
38% of an analyst's questions get "no records found" when the data is right there

38% of an analyst's questions get "no records found" when the data is right there

Comments
5 min read
Window Functions vs. Aggregate Functions in SQL (With Examples)

Window Functions vs. Aggregate Functions in SQL (With Examples)

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