Two people buy the last concert ticket
One ticket left, two thumbs on the Buy button. Whether you call the bug a lost update or a write skew depends on how you modelled the data, and the fix depends on the name. A walk through ACID's fine print, read committed, snapshot isolation, and four ways to fix a counter, with Postgres SQL you can run.




