SELECT Table1.Datum, Table1.Prihod, Table1.Rashod, (SELECT sum( [Prihod]-[Rashod]) FROM Table1 as T WHERE T.datum<=Table1.Datum) AS Saldo FROM Table1