Skip to content

Tag: postgresql

Calculate account balance history in PostgreSQL

I am trying to get a balance history on the account using SQL. My table in PostgreSQL looks like this: so the user with id number 2 currently has 40 dollars in his account. I would like to get this result using sql: Is it possible to do something like this using sql in postgres? Answer To get a rolling