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.
Catch an order-total mismatch with one SQL query

Catch an order-total mismatch with one SQL query

Comments
1 min read
My README claimed 50 SQL templates and shipped 8. Now the tests enforce the claim.

My README claimed 50 SQL templates and shipped 8. Now the tests enforce the claim.

Comments
3 min read
Database Indexing 101: How to Stop Slow SQL Queries Before They Kill Your App

Database Indexing 101: How to Stop Slow SQL Queries Before They Kill Your App

Comments
2 min read
Building Complex SQL Queries in a Type-Safe Way with Java and Querier

Building Complex SQL Queries in a Type-Safe Way with Java and Querier

1
Comments
13 min read
5 MySQL EXPLAIN Signals That Tell You Exactly Why Your Query Is Slow

5 MySQL EXPLAIN Signals That Tell You Exactly Why Your Query Is Slow

Comments
3 min read
A Full Table Scan Isn’t Always a Mistake

A Full Table Scan Isn’t Always a Mistake

Comments
4 min read
Self-service reporting without hurting your production database: replicas, views, indexes and timeouts

Self-service reporting without hurting your production database: replicas, views, indexes and timeouts

Comments
7 min read
Best BigQuery Data Modeling Tools (2026): SQLDBM, dbt, Dataform & Looker Compared

Best BigQuery Data Modeling Tools (2026): SQLDBM, dbt, Dataform & Looker Compared

Comments
10 min read
SQL vs NoSQL: choose the data shape first

SQL vs NoSQL: choose the data shape first

Comments
6 min read
Why MySQL and Postgres Use B+ Trees Instead of B-Trees for Indexing

Why MySQL and Postgres Use B+ Trees Instead of B-Trees for Indexing

Comments
2 min read
Offset vs Cursor Pagination: Why Your API Breaks at Scale

Offset vs Cursor Pagination: Why Your API Breaks at Scale

Comments
3 min read
How to Monitor SQL Server Agent Job Failures (Alerts, Queries and Best Practices)

How to Monitor SQL Server Agent Job Failures (Alerts, Queries and Best Practices)

Comments
4 min read
Fixing SQLSTATE[42000]: 1071 Specified Key Was Too Long (1000 & 767 Bytes) in Laravel

Fixing SQLSTATE[42000]: 1071 Specified Key Was Too Long (1000 & 767 Bytes) in Laravel

Comments
5 min read
Database Isolation Levels: Why Defaults Break Production

Database Isolation Levels: Why Defaults Break Production

Comments
3 min read
How to Clean Messy Employee Names in Oracle SQL Using TRIM() and LOWER()

How to Clean Messy Employee Names in Oracle SQL Using TRIM() and LOWER()

Comments
2 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.