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.
How a LEFT JOIN Lost a $1,000 Invoice at Month-End

How a LEFT JOIN Lost a $1,000 Invoice at Month-End

Comments
2 min read
Setting Up PostgreSQL with Docker, psql, and pgAdmin

Setting Up PostgreSQL with Docker, psql, and pgAdmin

Comments
11 min read
MySQL ENUM vs CHECK Constraint: Which Value List Changes Copy the Table

MySQL ENUM vs CHECK Constraint: Which Value List Changes Copy the Table

Comments
10 min read
Exchange Rates API Data in a Database: Schema, Indexes and As-Of Queries

Exchange Rates API Data in a Database: Schema, Indexes and As-Of Queries

Comments
7 min read
Transactions & Basic Indexing in PostgreSQL: COMMIT, ROLLBACK, EXPLAIN & SQLAlchemy ⚛️

Transactions & Basic Indexing in PostgreSQL: COMMIT, ROLLBACK, EXPLAIN & SQLAlchemy ⚛️

Comments
16 min read
Your Query Is Slow and You Have Never Read a Query Plan

Your Query Is Slow and You Have Never Read a Query Plan

Comments
2 min read
How to Reduce Azure SQL Costs: A Practical Checklist (2026)

How to Reduce Azure SQL Costs: A Practical Checklist (2026)

Comments
4 min read
SQLite foreign keys do not create child indexes: inspect a parent deletion plan

SQLite foreign keys do not create child indexes: inspect a parent deletion plan

Comments
3 min read
Transactions, Isolation Levels, MVCC, Locking, Triggers, Audit Logs & CAP Theorem in PostgreSQL đź”’

Transactions, Isolation Levels, MVCC, Locking, Triggers, Audit Logs & CAP Theorem in PostgreSQL đź”’

Comments
21 min read
SQL Challenge: Can You Group Customers by Income Using CASE WHEN?

SQL Challenge: Can You Group Customers by Income Using CASE WHEN?

Comments
2 min read
SQL injection example: login bypass and UNION reads on a local API

SQL injection example: login bypass and UNION reads on a local API

Comments
8 min read
SSHole. Can this star be trusted? Or CVE-2026–123158

SSHole. Can this star be trusted? Or CVE-2026–123158

1
Comments
2 min read
Rank X article announcements in Python without claiming readership

Rank X article announcements in Python without claiming readership

Comments
6 min read
A database client that knows which connection is production

A database client that knows which connection is production

1
Comments
3 min read
Why my dashboard tool checks its own numbers (and why I wrote it in Rust)

Why my dashboard tool checks its own numbers (and why I wrote it in Rust)

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