Database Transactions Explained: ACID and Isolation Levels

Why a bank transfer needs more than two UPDATE statements Move $50 from one account to another and the naive version is two statements: subtract from account A, add to account B. Run them separately, and if the process crashes or the connection drops between the two, the money is gone from A and never arrives in B. The database did exactly what it was told, twice. The business still lost $50. ...

October 31, 2026 路 9 min 路 1788 words 路 SpaghettiCoder

SQL JOIN Types Explained With Examples

A wrong JOIN doesn鈥檛 throw an error. It runs, returns a result set, and the rows are wrong: customers missing, totals inflated, orphaned records hidden. Most of the time the query asked for exactly what it got, and the author picked the wrong join type or filtered in the wrong place. A join combines rows from two tables on a condition you write. Which rows survive depends on the join type, and the six types below give six different answers from the same two tables. ...

October 2, 2026 路 9 min 路 1858 words 路 SpaghettiCoder