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.
Pagination That Skips Rows Is an Off-by-One in the Data Model

Pagination That Skips Rows Is an Off-by-One in the Data Model

Comments
3 min read
Database Indexing – Part 5: Sequential Scan vs. Index Scan vs. Bitmap Index Scan in PostgreSQL

Database Indexing – Part 5: Sequential Scan vs. Index Scan vs. Bitmap Index Scan in PostgreSQL

Comments
6 min read
Why SyteLine Says "Row Has Been Modified by Another User" (and How Optimistic Concurrency Works)

Why SyteLine Says "Row Has Been Modified by Another User" (and How Optimistic Concurrency Works)

Comments
3 min read
Reylo types .sql files by asking your database. I tried to fool it five ways.

Reylo types .sql files by asking your database. I tried to fool it five ways.

Comments
5 min read
SQL WINDOW FUNCTIONS, JOINS, CTES AND SUBQUERRIES.

SQL WINDOW FUNCTIONS, JOINS, CTES AND SUBQUERRIES.

1
Comments
11 min read
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
Why Databases Use B+ Trees Instead of BSTs

Why Databases Use B+ Trees Instead of BSTs

Comments
1 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

1
Comments 1
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
Why We Need Databases

Why We Need Databases

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