Postgresql – Is there a way to update 2 values each time calculating data on each row?
I have the following table: CREATE TABLE IF NOT EXISTS import.dre ( idmov integer, companynumber integer, idproduct integer, dtdate date, nrtank integer, dailybalance numeric, startbalance numeric, endbalance numeric ) Populated with the following query (10 first lines only): INSERT INTO…