Goran Bibic

Goran Bibic

  • 710
  • 2.4k
  • 87.7k

select value from row-1 MS SQL

Apr 15 2020 1:18 AM
I have simple code
 
  1. select   duguje as 'Duguje',   
  2. potrazuje as 'Potra┼żuje',   
  3. (duguje-potrazuje) as saldo   
  4. from dbo.nalog_knjizenje_stavke  
 Result is
 
 
That is ok, I need to repair my code to be last column 'saldo' next values:
 
saldo(last value) + Duguje - Potrazuje  = need to be result
 
 
Thak you
 

Answers (2)