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.
Why Your SQL Query Returns the Wrong Rows (And How WHERE and ORDER BY Fix It)

Why Your SQL Query Returns the Wrong Rows (And How WHERE and ORDER BY Fix It)

1
Comments
6 min read
Sentry and Mandrill Both Went Down When Postgres Ran Out of Transaction IDs

Sentry and Mandrill Both Went Down When Postgres Ran Out of Transaction IDs

1
Comments
9 min read
Composite Indexes in PostgreSQL & MySQL: Column Order Guide

Composite Indexes in PostgreSQL & MySQL: Column Order Guide

Comments
7 min read
Your lowest-rated product list may contain highly rated items

Your lowest-rated product list may contain highly rated items

Comments
6 min read
SQL: Find the Customers Who Stopped Ordering With a LEFT JOIN (and Why a Plain JOIN Hides the One You Most Need to Call)

SQL: Find the Customers Who Stopped Ordering With a LEFT JOIN (and Why a Plain JOIN Hides the One You Most Need to Call)

Comments
4 min read
SQL: The Monthly Revenue Report in Five Lines (GROUP BY Month Instead of a Spreadsheet Every Month-End)

SQL: The Monthly Revenue Report in Five Lines (GROUP BY Month Instead of a Spreadsheet Every Month-End)

Comments
3 min read
Why We Need Databases

Why We Need Databases

Comments
8 min read
Adding a Razor Page with Entity Framework Core to an ASP.NET Core Project

Adding a Razor Page with Entity Framework Core to an ASP.NET Core Project

Comments
5 min read
Your Postgres Get-or-Create Has a Race. Postgres 19's ON CONFLICT DO SELECT Closes It

Your Postgres Get-or-Create Has a Race. Postgres 19's ON CONFLICT DO SELECT Closes It

5
Comments 1
8 min read
Your salary coverage can fall before employers change

Your salary coverage can fall before employers change

Comments
7 min read
How to find missing IDs between two lists (and get the SQL for free)

How to find missing IDs between two lists (and get the SQL for free)

Comments
2 min read
What one month of public benchmarks says about my text-to-SQL access layer

What one month of public benchmarks says about my text-to-SQL access layer

Comments
2 min read
Zentro v0.10.0: Open-Core SQL IDE Built with Go + Wails

Zentro v0.10.0: Open-Core SQL IDE Built with Go + Wails

Comments
3 min read
Why Do Database Indexes Slow Down INSERTs? (The B+ Tree Page Split Dilemma)

Why Do Database Indexes Slow Down INSERTs? (The B+ Tree Page Split Dilemma)

1
Comments
2 min read
SQL Deep Dive: Window Functions, Joins, CTEs, and Subqueries

SQL Deep Dive: Window Functions, Joins, CTEs, and Subqueries

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