How can I use SQL to apply a ledger of 'actions' to a given table? – Postgresql
I use PostgreSQL 14 to work on a student_books table which manages books borrowed by students. Each student can have zero or more books borrowed at any point in time. The table look like this (the order of rows doesn't…