Understanding Tricky Joins and Multi-Table Updates in PostgreSQL (Using Boolean Algebra!)
Writing a proper SQL UPDATE
query involving multiple tables in Postgres can be tricky and counterintuitive. This stems from the fact that when performing an UPDATE
, other tables…